﻿# Big-Vul: trace vulnerability labels to fixing commits

Trace Big-Vul function labels to CVE-linked fixing commits, distinguish release tables, and keep post-fix fields out of pre-fix detection inputs.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-bigvul-commit-label-lineage/
Language: en

## Start with the CVE-to-change relationship

The [original conference abstract](https://www2.sigsoft.org/opentoc/msr2020-toc/) 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](https://github.com/ZeoVan/MSR_20_Code_vulnerability_CSV_Dataset) 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](/journal/document-markdown-json-provenance/) 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](https://arxiv.org/html/2403.18624v2) 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](/journal/document-level-data-split-leakage/). 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.
