An Empirical Study of Vulnerability Localization with Third-Party Reports
Cai, Mingsheng, Santos, Joanna Cecilia da Silva, Sejfia, Adriana
–arXiv.org Artificial Intelligence
Third-party vulnerability reports are indispensable to software security maintenance, yet they describe how a vulnerability manifests rather than where it resides in code. Software engineers take 24 days to 9 months to localize and fix a reported vulnerability, leaving systems exploitable in the meantime. Automating this process is therefore critical. A natural starting point towards automation is records of past vulnerabilities. However, their value for automated localization has yet to be investigated. In this research, we conduct a large-scale empirical study using PrismVul, a benchmark of 6,851 vulnerability entries from 831 Open-Source Software (OSS) projects spanning 11 programming languages. Each benchmark entry links a third-party report to the corresponding vulnerable code. We evaluate four technique families: statistical methods, machine learning, code retrieval, and LLM agents, alongside general bug localization methods. Our results indicate that automated vulnerability localization is non-trivial, as most vulnerabilities occur at unique locations. Consequently, methods confined to historically observed locations provide limited coverage, whereas comprehensive techniques that look beyond just the location are more promising. With historical third-party reports, LLM agents perform best and outperform the evaluated general bug localization methods, achieving up to 86.09% Recall@5 and reaching 81.76% on previously unseen OSS projects. To account for cases when such reports may be scarce, we consider summary descriptions from public vulnerability databases (e.g., NVD) and establish that they can safely substitute third-party reports in agent-based localization. Our findings establish realistic baselines for automated vulnerability localization and demonstrate the value of historical third-party reports.
arXiv.org Artificial Intelligence
Dec-2-2026
- Country:
- North America > United States (0.69)
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Information Technology > Security & Privacy (1.00)
- Technology: