TECHNOLOGY

Big-Vul: trace vulnerability labels to fixing commits

In this article
THE QUICK TAKE

A changed function is a dataset labeling unit; it does not by itself prove which statement caused a vulnerability.

Start with the CVE-to-change relationship

The original conference abstract describes Big-Vul as a collection linking CVE descriptions with changes in open-source C/C++ projects. The association joins two kinds of evidence: a published vulnerability record and a repository change believed to address it. A CVE identifier is therefore useful provenance, but it is not a function-level annotation supplied directly by the CVE catalogue. Preserve the intermediate repository and commit relationship when explaining how a training label arose.

Distinguish commit tables from extracted functions

The author repository links the all_c_cpp_release2.0.csv artifact separately from cleaned function-level exports. Its documented columns include commit_id, cve_id, cwe_id, project, files_changed, version_before_fix, and version_after_fix. These fields describe different entities. Expanding a commit into functions can repeat CVE and project values across rows. Count commits, vulnerabilities, files, and functions separately rather than treating any row total as the number of independent security incidents.

Prevent the repair from becoming an input

Function exports document func_before, func_after, vul, and vul_func_with_fix. For a pre-fix detection experiment, the after-version and comments showing the fix reveal information unavailable at prediction time. An editorial input contract should allow the intended pre-change text while reserving the paired repair for later review. The provenance guide helps preserve these roles when flattening records into a model-ready table. Removing a target column alone does not remove explanatory repair text embedded elsewhere.

Examine the changed-line labeling assumption

The repository explains its vulnerable-function assignment through changed lines around a fix. That is an extraction heuristic, not a complete causal analysis of every edited function. A commit can adjust callers, checks, or surrounding maintenance code. The later PrimeVul study examines related labeling and leakage problems and documents duplicate Big-Vul functions with conflicting labels. Its observations support reviewing paired examples; they do not automatically relabel every row of the original release.

Choose a split that matches the question

For a new experiment, group functions from the same fixing event before applying a holdout, following leakage controls. A chronological study must distinguish commit time from CVE publication or later record-update dates. Document the chosen clock and handling of missing links. Big-Vul is useful for studying CVE-associated code changes and historically derived detection labels. Performance on its functions does not establish complete vulnerability coverage, a causal explanation of a defect, or that the after-version has no other security problems.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles