CVEfixes: automated collection of vulnerabilities and their fixes from open-source software
By Guru Prasad Bhandari, Amara Naseer, Leon Moonen. International Conference on Predictive Models in Software Engineering, 2021
326 citations recorded by the source corpus.
Data-driven research on the automated discovery and repair of security vulnerabilities in source code requires comprehensive datasets of real-life vulnerable code and their fixes. To assist in such research, we propose a method to automatically collect and curate a comprehensive vulnerability dataset from Common Vulnerabilities and Exposures (CVE) records in the National Vulnerability Database (NVD). We implement our approach in a fully automated dataset collection tool and share an initial release of the resulting vulnerability dataset named CVEfixes. The CVEfixes collection tool automatically fetches all available CVE records from the NVD, gathers the vulnerable code and corresponding fixes from associated open-source repositories, and organizes the collected information in a relational database. Moreover, the dataset is enriched with meta-data such as programming language, and detailed code and security metrics at five levels of abstraction. The collection can easily be repeated to keep up-to-date with newly discovered or patched vulnerabilities. The initial release of CVEfixes spans all published CVEs up to 9 June 2021, covering 5365 CVE records for 1754 open-source projects that were addressed in a total of 5495 vulnerability fixing commits. CVEfixes supports various types of data-driven software security research, such as vulnerability prediction, vulnerability classification, vulnerability severity prediction, analysis of vulnerability-related code changes, and automated vulnerability repair.
Subfields: Information Systems, Software
View Paper: https://www.semanticscholar.org/paper/f1d7a4ed38192f156e77cde0785093cc0b66259e
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Information Systems
In Software
Citations in the corpus
- DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection (2023, methodology): “To label vulnerable functions, we follow the methodology used in Devign [33], ReVeal [4], BigVul [9], CrossVul [19], and CVEFixes [2], which considers a function vulnerable if it was changed by a commit that is identified”
- CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrieval (2025, unknown): “Additionally, we include examples from CVEFixes [12], a dataset of real-world vulnerability fixes in open-source projects.”