|
Description
|
This database contains 5,583 vulnerability–fix function pairs extracted from 500 publicly available open-source C repositories hosted on GitHub. The dataset covers 2,686 CVEs spanning 127 CWE categories and is organized into three complementary JSON files representing vulnerabilities at method, file, and repository levels. The method-level dataset contains vulnerable and fixed versions of modified methods together with method metadata, including signatures, source locations, and associated CVE/CWE information. The file-level dataset provides the complete vulnerable and fixed source files, Git diffs, and file metadata for each vulnerability-fixing commit. The repository-level dataset captures repository metadata, commit information, and the relationships between repositories, commits, files, and associated CVE/CWE records. The database was constructed by first identifying vulnerability-fixing commits using VulCode-Scrape, which links GitHub repositories with publicly disclosed CVE records from the U.S. National Vulnerability Database (NVD). Method-level information was subsequently extracted using PyDriller and Lizard. To improve data quality, the extraction pipeline applies to a file-level pre-filter to discard irrelevant changes and a Tree-sitter AST-based filter to remove method pairs whose differences are limited to comments or whitespace. The released JSON files are linked through unique identifiers (e.g., method_change_id and file_change_id), enabling navigation between method-, file-, and repository-level representations of the same vulnerability. The database is intended for research in software security, including static vulnerability detection, vulnerability localization, automated vulnerability repair, software engineering, and the development and evaluation of machine learning and large language model (LLM) techniques for source code analysis. (2026)
|
|
Related Publication
| Is Supplement To: @article{guo2024comprehensive, title={A comprehensive analysis on software vulnerability detection datasets: trends, challenges, and road ahead: Y. Guo et al.}, author={Guo, Yuejun and Bettaieb, Seifeddine and Casino, Fran}, journal={International Journal of Information Security}, volume={23}, number={5}, pages={3311--3327}, year={2024}, publisher={Springer} }https://link.springer.com/article/10.1007/s10207-024-00888-y |