Exploring Early Vulnerability Analysis via Automatic Identification of Vulnerability-Introducing Commits
Weiliang Qi, Shu Wang, Youpeng Li, Ela Guo, Xinda Wang
Key points
From the paper's conclusion- We also show that D-SZZ improves downstream vulnerable-version identification, and use it to uncover 16 inaccurate affected-version records in the NVD, all of which were officially confirmed and updated.
Abstract
Developing effective vulnerability analysis techniques requires high-quality datasets that capture how vulnerabilities appear and evolve in real software codebase. Existing datasets, however, typically label as vulnerable only the code immediately preceding vulnerability-fixing commits (VFCs), overlooking the earlier versions in which vulnerabilities were first introduced and subsequently evolved. This practice limits both dataset coverage and our understanding of whether current detectors can identify vulnerabilities during their early, latent stages. In this paper, we present three manually annotated datasets of vulnerability-introducing commits (VICs) based on recent CVEs and widely used open-source projects. We further propose D-SZZ, a data state-aware VIC identification framework that analyzes security-fixing patterns and performs vulnerability scope slicing to recover the semantics implied by a fix. Experimental results demonstrate that D-SZZ outperforms existing SZZ and LLM-based baselines in identifying VICs. In addition, we evaluate six representative vulnerability detectors and find that models trained only on pre-VFC code struggle with original vulnerabilities, while incorporating early-stage samples improves detection performance. We also show that D-SZZ improves downstream vulnerable-version identification, and use it to uncover 16 inaccurate affected-version records in the NVD, all of which were officially confirmed and updated.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Beyond the Diff - VulSpot: A Vulnerability Dataset Where No Vulnerability Goes UnlocalizedarXiv · 2026
- One Strategy Does Not Fit All: Rethinking Data Labeling for Just-in-Time Vulnerability PredictionarXiv · 2026
- Context-Enhanced Vulnerability Detection Based on Large Language ModelsACM Transactions on Software Engineering and Methodology · 2025
- Reassessing Dataset Quality and Fine-Tuning Practices for Vulnerability Detection on PrimeVul datasetarXiv · 2026
- Silence of Commit Messages: An Empirical Study for Vulnerability Commit Message Generation using Large Language ModelsProceedings of the ACM on Software Engineering · 2026
- Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGACM Transactions on Software Engineering and Methodology · 2026