PatchFinder: A Two-Phase Approach to Security Patch Tracing for Disclosed Vulnerabilities in Open-Source Software
Not on the map. Why?
Abstract (arXiv)
Open-source software (OSS) vulnerabilities are increasingly prevalent, emphasizing the importance of security patches. However, in widely used security platforms like NVD, a substantial number of CVE records still lack trace links to patches. Although rank-based approaches have been proposed for security patch tracing, they heavily rely on handcrafted features in a single-step framework, which limits their effectiveness. In this paper, we propose PatchFinder, a two-phase framework with end-to-end correlation learning for better-tracing security patches. In the **initial retrieval** phase, we employ a hybrid patch retriever to account for both lexical and semantic matching based on the code changes and the description of a CVE, to narrow down the search space by extracting those commits as candidates that are similar to the CVE descriptions. Afterwards, in the **re-ranking** phase, we design an end-to-end architecture under the supervised fine-tuning paradigm for learning the semantic correlations between CVE descriptions and commits. In this way, we can automatically rank the candidates based on their correlation scores while maintaining low computation overhead. We evaluated our system against 4,789 CVEs from 532 OSS projects. The results are highly promising: PatchFinder achieves a Recall@10 of 80.63% and a Mean Reciprocal Rank (MRR) of 0.7951. Moreover, the Manual Effort@10 required is curtailed to 2.77, marking a 1.94 times improvement over current leading methods. When applying PatchFinder in practice, we initially identified 533 patch commits and submitted them to the official, 482 of which have been confirmed by CVE Numbering Authorities.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 18 of its 49 references that are in the map. First posted on arXiv 24 Jul 2024.
Builds on
18 of 49 references.
References · 18
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2021SPI: Automated Identification of Security Patches via Commitscited by 19
- 2021PatchRNN: A Deep Learning-Based System for Security Patch Identificationcited by 13
- 2019Commit2Vec: Learning Distributed Representations of Code Changescited by 12
6 more
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2022Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystemcited by 8
- 2022Enhancing Security Patch Identification by Capturing Structures in Commitscited by 7
- 2023Mitigating Persistence of Open-Source Vulnerabilities in Maven Ecosystemcited by 4
- 2023Optimizing Guided Traversal for Fast Learned Sparse Retrievalcited by 3
- 2021Tracking Patches for Open Source Software Vulnerabilitiescited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.