Manuscript Offprint
arXiv:2611.09026Beyond a Single Commit: Anchor-Guided Reconstruction of Multi-Commit Patches
Jialiang Dong*, Willy Susilo*, Xu Gai†, Liuhuo Wan*, Chao Zhang‡, Elisa Bertino§, and Siqi Ma*
- University of Wollongong † University of International Relations ‡ Tsinghua University § Purdue University
Abstract—Vulnerability patch identification plays a critical role in software security by linking reported vulnerabilities and the corresponding fixes, enabling reliable vulnerability analysis, mitigation, and automated security tool development. As software systems evolve in complexity, vulnerability remediation has increasingly shifted from single-commit fixes to multi-commit fixing processes. Although many studies have been proposed to identify fixing commits associated with target vulnerabilities automatically, they often suffer from inaccurate semantic analysis or excessive workload for language models. These limitations reduce both the effectiveness and comprehensiveness of fixing commit identification.
To improve patch identification, we propose an effective and comprehensive patch identification framework, HARPOON, which not only enhances the accuracy of identifying individual fixing commits, but also investigates dependencies among commits to achieve comprehensive commit recognition for target vulnerabilities. Experimental results show that HARPOON significantly outperforms the state-of-the-art approaches. HARPOON successfully identified 895 vulnerability patches that were not previously maintained in public vulnerability databases. Among them, 663 are previously unrecorded fixes associated with 323 CRITICAL- or HIGH-severity vulnerabilities.
I. INTRODUCTION
With the widespread adoption and reuse of open-source software in modern software ecosystems, vulnerabilities in a single project can affect thousands or even millions of dependent applications. According to the 2025 OSSRA report [1], [2], 86% of commercial codebases contain open-source vulnerabilities, while 81% include HIGH- or CRITICAL-risk vulnerabilities. Due to the large volume of the report vulnerability, manually locating, verifying, and remediating all such vulnerabilities is often impractical for developers [3]. Hence, some vendors may employ vulnerability patch identification tools (e.g., Snyk [4]) to search for potential patch recommendations or rely on the patches maintained by the vulnerability repositories (e.g., NVD [5], Debian [6]) to support remediation. Consequently, patch retrieval has become a fundamental task for supporting effective and efficient real-world vulnerability remediation, requiring both high accuracy and comprehensive patch coverage.
As modern software systems become increasingly complex, such complexity has made vulnerability remediation an inherently iterative and ad-hoc process [7]. This causes accurately and comprehensively identifying vulnerability patches challenging because real-world vulnerability remediation often involves more than one fixing commit. To recognize
the fixing commits of a target vulnerability, existing works commonly utilize three types of approaches — semantic-based description analysis, large language model (LLM) reasoning, and hybrid analysis. Semantic-based description analysis [8]–[11] identifies fixing commits through semantic matching between vulnerability descriptions and code changes. However, real-world vulnerability descriptions and commit messages may be incomplete or inaccurate, which can mislead semantic analysis by insufficient vulnerability information and superficial semantic similarities. To enhance semantic understanding, LLM-based reasoning [12] has been proposed to leverage the reasoning capabilities of LLMs for analyzing commit messages and code changes. Nonetheless, when numerous commits are involved in vulnerability remediation, LLMs struggle to process them effectively, leading to accumulated reasoning errors in large projects with long commit histories. Although hybrid analysis [13] is also proposed by combining semantic analysis with LLM reasoning, it remains insufficient for overcoming the inherent limitations of semantic analysis and LLM reasoning.
To fill this gap, we propose an effective and comprehensive patch identification approach, HARPOON, to reconstruct the patch for remediating a target vulnerability. Given that a project repository may contain hundreds to millions of commits, and a single commit may involve multiple purposes (e.g., bug fixing, vulnerability remediation, or functionality changes [14]), directly analyzing all commits is inefficient and prone to noise. Therefore, HARPOON first performs anchor commit filtering to identify anchor fixing commits, namely, commits that are highly likely to be involved in remediating the target vulnerability. For vulnerability remediation, two distinct scenarios are often involved: 1) similar vulnerabilities may be distributed across different locations in a project, requiring similar remediation logic; 2) complex vulnerabilities may require multiple fixing commits to fully resolve the underlying security issue, HARPOON accordingly employs two strategies — coverage-completion and dependency reconstruction, to recover fixing commits that potentially contribute to the complete remediation process. Using the anchor fixing commits as the references, HARPOON then identifies candidate commits that share similar remediation patterns with the anchor commits or have direct/indirect dependency relationships with them. Finally, HARPOON performs an LLM-based refinement to understand the underlying intent of candidate commits and filter out those that exhibit different remediation intents despite sharing semantic similarities or dependency relationships with the anchor commits.
We built a real-world vulnerability-patch benchmark dataset comprising 1,207 vulnerabilities. Of these, 1,019 were remediated by a single fixing commit (denoted as single-commit patches), while 188 required multiple fixing commits over different time periods (denoted as multi-commit patches). We assessed the effectiveness and comprehensiveness of HARPOON in identifying patches by applying it to the vulnerability-patch benchmark and comparing its performance against four state-of-the-art approaches. The results show that HARPOON substantially outperforms state-of-the-art approaches for both single-commit and multi-commit patch identification, achieving an F1 of 93.02% and 75.08%, respectively, while the best state-of-the-art approach, Prospector, only achieves 90.85% and 55.21%, respectively. HARPOON also demonstrates strong efficiency, reducing the median processing time from 130 seconds achieved by the state-of-the-art approach to only 40 seconds. We further applied HARPOON to an in-the-wild dataset and identified 323 previously undocumented patches for CRITICAL- or HIGH-severity vulnerabilities, which were subsequently reported to CVE, Debian Security, and GHSA. Our evaluation shows that 44.58% of these vulnerabilities require multi-commit patches for complete remediation, indicating that the identification of a single fixing commit is insufficient for recovering the vulnerability remediation process. Among the identified multi-commit patches, nearly half (48%) are completed within one week, whereas 13% take longer than one month to complete.
-
A lightweight commit identification tool. We built HARPOON, to focus on fixing commits that are highly likely to be associated with the target vulnerability, avoiding exhaustive analysis of all commits in the repository. This reduces the noise introduced during semantic analysis and the computational cost of commit analysis.
-
Large-scale empirical findings. Using HARPOON, we uncover 323 previously undocumented high-severity vulnerability patches, including 144 multi-commit patches.
Ethics and Disclosure. To uphold ethical research practices, all detected previously undocumented multi-commit patches were reported to CVE, Debian Security, and GHSA. We release our dataset and HARPOON implementation to facilitate future research [15].
II. BACKGROUND
A. Multi-Commit Vulnerability Remediation
Following the vulnerability disclosure policy, software vendors are expected to fix affected products either prior to disclosure or immediately after the vulnerability is publicly disclosed. Additionally, real-world practices show that vulnerability remediation does not always proceed in a linear “analyze once, fix once, release once” manner. Developers may need to identify additional instances of the same vulnerability type across the project, or continuously refine the remediation to address follow-up issues introduced by earlier patches [16]. We refer such cases as multi-commit patches. In contrast, cases involving only a single fixing commit are called single-commit patches.
To identify vulnerability-fixing commits, existing approaches mainly rely on three representative techniques: semantic-based vulnerability description analysis [8]–[11], LLM-based reasoning [12], and hybrid methods [13]:
Semantic-based analysis focuses on retrieving candidate commits by matching vulnerability descriptions with code changes or commit messages. However, they assume that semantic similarity implies remediation relevance, making them susceptible to incomplete vulnerability descriptions and semantically similar but unrelated commits.
LLM-based reasoning leverages the semantic analysis and reasoning capabilities of LLMs to determine whether a candidate commit contributes to remediating a target vulnerability. Although such approaches improve semantic understanding of fixing commits, the LLM capabilities are commonly inconsistent and unreliable, especially when numerous fixing commits are involved.
Hybrid approach combines semantic analysis with LLM reasoning. However, they identify additional commits primarily through commit similarity and do not explicitly model progressive remediation behaviors, limiting their ability to recover real-world multi-commit patches.
B. Motivating Example and Challenges
Figure 1 illustrates a motivating example of a vulnerability remediated through a multi-commit patch. This case cannot be identified effectively by existing approaches. Vulnerability CVE-2018-8825 [17] is a HIGH-severity buffer overflow vulnerability (CVSS 8.8), which can be triggered by a crafted TFLite model and may result in program crashes or arbitrary code execution. According to the publicly available vulnerability information, no patch information is maintained by vulnerability repositories. Hence, the corresponding remediation commits are not immediately available and must be inferred from additional project artifacts and repository histories.
However, when we manually check the fixing commits given by TensorFlow in its repository, it first addressed the vulnerability in commit 41335abb on March 20, 2018 (shown in Figure 1(a)). This commit replaced the flawed Verify function at Line 4 with stricter validation logic (Lines 5–7), ensuring that malformed TFLite flatbuffer inputs
Commit 41335abb - Improve flatbuffer verification. Mar 20, 2018 Validate malformed TFLite Flatbuffers before import
tensorflow/contrib/lite/toco/tflite/import.cc
1 @@ ... @@ bool Verify(const void* buf, size_t len) { 2 std::unique_ptr::Model::Import(const ModelFlags& model_flags, const string& input_file_contents) { 4 - if (!Verify(input_file_contents.data(), input_file_contents.size)) { 5 + ::tflite::AlwaysTrueResolver r; 6 + if (!tflite::Verify(input_file_contents.data(), input_file_contents.size(), r, ::tflite::DefaultErrorReporter()) { 8 LOG(FATAL) << "Invalid flatbuffer."; 9 } }
(a) Fixing commit 41335abb.
Commit 8badd11d - Check arguments of ComputeConSizes. Apr 5, 2018 Reject invalid dimensions before size computation
tensorflow/contrib/lite/toco/graph_transformations propagate_fixed_sizes.cc
1 @@ ... @@ Void ComputeConSizes(const Shape& input_shape, ..., int stride_height) 2 const int input_height = input_shape_dims(1); 3 const int batch = input_shape_dims(0); 4 * CHECK_GE(input_width, 1); 5 * CHECK_GE(input_height, 1); 6 * CHECK_GE(batch, 1); 7 * CHECK_GE(kwidth, 1); 8 * CHECK_GE(kheight, 1); 9 * CHECK_GE(stride_width, 1); 10 * CHECK_GE(stride_height, 1); 11 * CHECK_GE(dilation_width_factor, 1); 12 * CHECK_GE(dilation_height_factor, 1); 13 int dilated_kwidth = dilation_width_factor * (kwidth - 1) + 1; 14 int dilated_kheight = dilation_height_factor * (kheight - 1) + 1; 15 ....... 16 if (padding_type == PaddingType::kValid) { 17 output_height = (input_height + stride_height - dilated_kheight) / stride_height; 18 .......
(b) Fixing commit 8badd11d.
Fig. 1: Motivating Example based on CVE-2018-8825.
are properly checked for structural validity. Unfortunately, such structural validation is insufficient to fully mitigate this vulnerability because structurally valid models may still contain semantically invalid convolution parameters (e.g., zero dimensions). These invalid parameters can trigger erroneous shape inference or unsafe memory access during subsequent computation. TensorFlow developers further recognized such an issue and introduced the second commit 8badd11d on April 5, 2018 (shown in Figure 1(b)), which added validity checks for parameters such as stride_height to ensure semantic validation (Lines 9, 17).
When applying existing approaches, commit 41335abb can be readily identified as the fixing commit of CVE-2018-8825 because the changes directly processed with the disclosed vulnerability. However, it is challenging to identify the follow-up commit 8badd11d because:
-
The CVE-2018-8825 report only contains a coarse-grained description of the vulnerability impact and triggering conditions. It only states that TensorFlow is affected by a buffer overflow and contains no indication of the semantic validation issue addressed by 8badd11d, limiting semantic-based approaches (Challenge #1).
-
Commits 41335abb and 8badd11d indicate a progressive remediation process distributed across different files and code locations, separated by more than two weeks. Existing approaches typically analyze commits in isolation, making them unable to capture remediation dependencies between related commits (Challenge #2).
-
TensorFlow introduced 586 other commits between Commits 41335abb and 8badd11d. These intervening irrelevant commits substantially increase the analysis noise, and make it difficult for existing approaches to identify the relevant remediation commits. (Challenge #3).
III. METHODOLOGY
To identify the patches of the target vulnerability comprehensively, we propose a framework HARPOON, shown in Figure 2.
A. Anchor Fix Identification
Instead of directly analyzing a large number of fixing commits, HARPOON leverages commit features to identify anchor commits for each target vulnerability. According to the vulnerability fix pattern — fixes associated with a vulnerability are usually committed within a limited time window close to the vulnerability public disclosure date [18], HARPOON first conducts time-series commit filtering to narrow down the scope of commit analysis. Then it uses vulnerability features to identify the commits with vulnerability-related features through heterogeneity-LLM anchor determination.
-
Time-Series Commit Filtering: To determine the time-series range, HARPOON extracts the CVE disclosure date and examines the affected software versions listed in the Known Affected Software Configurations field. Specifically, it conducts the initial filtering by selecting fixing commits made between the release dates of the last affected version and that of the first fixed version as potential fixing commits associated with the target vulnerability. When the affected software version is unavailable in the CVE report, HARPOON applies a severity-dependent look-back window from the CVE publication date [19]–[21], i.e., 30 days before publication for CRITICAL/HIGH vulnerabilities, 60 days before publication for MEDIUM vulnerabilities, and 90 days before publication for LOW vulnerabilities. If the initial filtering cannot locate any fixing commits, HARPOON further extends the search range to six months before/after the CVE publication date.
-
Heterogeneity-LLM Anchor Determination: Since LLMs have an intelligent performance in understanding the semantic meaning of text, HARPOON employs LLM-based dependency analysis to examine correlations among the candidate commits for anchor commit identification. However, even after narrowing down the commit scope through time-series filtering, the number of candidate fixing commits may remain large, making direct LLM-based commit processing infeasible.
Therefore, HARPOON first filters fixing commits using the vulnerability features because commits containing richer vulnerability-related information are more likely to be relevant to the target vulnerability. It then applies an LLM to analyze the commit descriptions and determine the anchor commits.
Heterogeneity-aware selection. Vulnerability features have different levels of uniqueness - higher-uniqueness features

Fig. 2: Overview of HARPOON.
are more informative for identifying relevant fixing commits than lower-uniqueness features. To achieve comprehensive coverage, we examine four types of vulnerability features in descending order of uniqueness: Vulnerability Identifiers > Commit Hashes > Vulnerable Elements > CWE Keywords.
- Vulnerability Identifiers: These include CVE-IDs and related issue IDs, which can be used in vulnerability reports to uniquely distinguish individual vulnerabilities.
- Commit Hashes: Commit hashes referenced by vulnerability reports to link vulnerabilities with their corresponding fixing commits.
- Vulnerable Elements: These are the code-related information that might be highlighted in CVE reports, including affected files, functions, and variables.
- CWE Keywords: These are the keywords for describing the vulnerability type, which include Name, Description, Alternate Terms, Weakness Ordinalities, Potential Mitigations, and Demonstrative Examples.
HARPOON first extracts the vulnerability features using regex matching with tailored patterns. For retrieving vulnerability identifiers, HARPOON uses the pattern CVE-[0-9]{4}-[0-9]+ to analyze the CVE References field, and checks the issue references through patterns /issues/[0-9]+ or /pull/[0-9]+. In terms of commit hashes, HARPOON matches URLs containing both git and commit, and further extracts the corresponding commit hashes using the regex pattern [0-9a-f]{40}. Since vulnerable elements are often expressed as natural-language phrases, it makes them difficult to distinguish from the original vulnerability descriptions. Hence, HARPOON employs GPT-5-Nano [22], which exhibit strong capabilities in natural-language understanding, to analyze the CVE
description and extract vulnerable code elements, including affected files, functions, and variables. To collect CVE keywords, HARPOON first builds a vulnerability keyword corpus from the content of each CWE type. Then it applies the Term Frequency-Inverse Document Frequency (TF-IDF) algorithm to estimate term importance and selects the top-3 terms for each CWE as its representative keywords. Given the vulnerability keyword corpus, HARPOON matches the keywords of each vulnerability type against the CVE report. Once any keyword is matched, the CVE report is grouped into the corresponding vulnerability type, and all keywords associated with that type are used as the representative keywords of the report for subsequent fix analysis.
Having the vulnerability features, HARPOON performs feature matching over commit messages and code diffs following their uniqueness order. Once a commit contains a feature type with higher uniqueness, HARPOON terminates the matching process and skips the comparison with the remaining lower-uniqueness features.
LLM-based commit analysis. To better retrieve the correlations among the commits, HARPOON utilizes GPT-5-Nano to analyze the commits that contain vulnerability features, using their commit messages and code diffs, along with the vulnerability description, as the input. HARPOON finally outputs the commits identified as genuine vulnerability fixing commits as anchor commits.
B. Vulnerability Patch Reconstruction
A vulnerability may be fixed through multiple commits because 1) the same vulnerability can affect multiple code locations requiring similar remediation logic; 2) the vulnerability is difficult to fix comprehensively with a single patch, or earlier patches may introduce some subsequent bugs that require addi-tional fixes. Based on the two cases, HARPOON analyzes fixing commits by employing two complementary reconstruction strategies, Coverage-Completion and Dependency-Driven, to analyze relationships between anchor commits and remaining fixing commits, thereby identifying potential multi-commit patches.
When fixing a vulnerability in practice, developers often inspect not only the specific code location where the vulnerability is identified, but also the entire project to determine whether similar vulnerabilities are present in other locations. If so, developers may apply similar fixes to those vulnerable code snippets. It indicates that similar fixes for the same vulnerability are typically committed within a certain period around the publication date of the anchor commit. Accordingly, HARPOON restricts the analysis scope to commits published within 33 days before and after the anchor commit [18] for patch reconstruction, rather than analyzing all fixing commits.
- Coverage-Completion Patch Reconstruction: This strategy addresses the scenario where the same vulnerability spans multiple code locations (e.g., different files or modules), and requires similar fix logic across these locations. HARPOON leverages the patterns of anchor commits as reference to identify other commits with similar code-change logic and remediation-description patterns.
Anchor Pattern Construction. From each anchor commit, HARPOON separately extracts two types of patterns from two objectives: code changes and commit descriptions. For code-change analysis, HARPOON first decomposes code diffs and generates hunks where each hunk represents a contiguous block of modified code lines surrounding a specific change. Within each hunk, HARPOON then parses the pre-fix and post-fix code fragments into ASTs using tree-sitter [23]. It further identifies AST-delta features by comparing node-type frequency differences between the pre-fix and post-fix ASTs, thereby capturing the structural code changes introduced by the fix. To extract the remediation description patterns, HARPOON analyzes commit descriptions and constructs a TF-IDF model over commit messages. It collects the highest-weighted terms from the descriptions.
HARPOON constructs a fix fingerprint for each anchor commit by combining the patterns of the code changes and commit descriptions.
Candidate Commit Matching. Taken as input the fix fingerprint of each anchor commit, HARPOON further compares the fix fingerprint with the other commits to identify those containing similar fix patterns. Specifically, HARPOON applies the same AST-delta feature extraction and TF-IDF encoding procedure to each target commit as described for the anchor commit. It then conducts hunk-level comparison by calculating the cosine similarities between the AST-delta TF-IDF vectors of the anchor commit and the target commit. According to the similarity scores, HARPOON first selects the top- most similar commits ( by default) based on code-change similarity, and then verifies whether their commit descriptions contain the highest-weighted terms extracted from the anchor commit message. Commits satisfying both the code-change similarity and commit-description consistency criteria are retained as the coverage-completion candidate set for the target multi-commit patch.
- Dependency-Driven Patch Reconstruction: This strategy targets vulnerabilities whose remediation is distributed across multiple dependent fixing commits. Such commits may correct issues introduced by earlier patches or replace incomplete fixes. HARPOON identifies commits correlated with the anchor commit through forward and backward slicing.
Content-based Commit Comparison. HARPOON selects the candidate commits that share similar elements with the anchor commits. Specifically, HARPOON collects three levels of comparison between the anchor commits and the candidate commits: file, code, and metadata. It first applies file-level comparison to examine similarities in modified directories and file names. Then, it conducts code-level comparison by comparing modified functions and variables. Finally, HARPOON conducts metadata-level comparison to match author information, issue IDs, pull-request IDs, bug IDs, and commit hashes from the anchor commit. While most metadata fields can be extracted directly, bug IDs are often referenced in customized formats. To address this issue, HARPOON first locates potential bug-ID mentions using indicative terms, including follow-up, fixup, regression, tighten, complete, completed, complement, and harden, and then extracts bug IDs through regex matching.
HARPOON builds a commit candidate , where represents the anchor commit used for comparison. When the target commit matches any one element with the anchor commit , HARPOON adds it to .
Commit Dependency Analysis. Building upon , HARPOON further analyzes whether the modifications introduced by candidate commits exhibit program-semantic dependencies with those introduced by the anchor commit. Specifically, HARPOON retrieves the contextual semantics of both the anchor commit and candidate commits, and determines whether their modifications are dependent.
Given each anchor commit , HARPOON first analyzes its pre-fix and post-fix versions to extract the affected functions, and then uses tree-sitter [23] to parse the corresponding functions into ASTs. To better capture data/control dependencies, HARPOON separately converts the ASTs into control-flow graphs (CFGs) and data-flow graphs (DFGs). For CFG construction, HARPOON maps AST nodes corresponding to execution statements, including assignment statements, conditional statements, function calls, and return statements, into graph nodes. The control-flow edges are then added between two nodes based on the code execution orders. For DFG construction, HARPOON starts from variable declarations in the AST to identify the variables that may be involved in vulnerability remediation. It then traces the data flow of each variable by analyzing how it is used throughout execution. The involved variables are represented as graph nodes, and directed edges are added between nodes to represent data flow execution.
To retrieve the nodes that potentially contribute to remediating the target vulnerability, HARPOON first compares the
CFGs/DFGs constructed from the pre-fix and post-fix versions and separately identifies the added and deleted nodes. It then starts from the changed nodes and performs forward and backward traversals over CFGs and DFGs to collect additional nodes with direct/indirect control/data dependencies. All dependent nodes, together with the original nodes, are included in a node set . For each candidate commit , HARPOON performs the same step to construct a node set .
To further extract the correlations between and , HARPOON compares the nodes in and pairwisely. When the same node exists in both and , it adds a directed edge between the corresponding node in the dependency graphs of the candidate commit and the anchor commit. According to the connected graphs between the candidate commits and each anchor commit, HARPOON selects the fixing commits that appear in both and the connected graph. These commits are then recovered and stored together with the anchor commit as potential fixing commits belonging to the multi-commit patch of the target vulnerability, while preserving their dependency relationships.
C. Multi-Commit Patch Refinement
Although HARPOON retrieves potential fixing commits that are likely to contribute to the same vulnerability remediation, the candidate set may still include commits that modify the same elements as the anchor commits but serve different purposes. For example, commits that only update print outputs may be included despite being unrelated to vulnerability remediation. HARPOON thus applies LLM-based semantic refinement to investigate the intent behind modification of each commit.
In detail, HARPOON organizes the candidate commits of a multi-commit patch into a chronological sequence based on their commit timestamps. Then HARPOON formulates task-oriented prompts by including the commit-related information (i.e., commit hash, timestamp, commit description, and code diff), together with the associated vulnerability description, to guide the LLM to confirm the fixing commits through semantic-level intent analysis. The complete prompt is available in our artifact repository [15].
IV. EXPERIMENTS
A. Experimental Settings
To evaluate the effectiveness and comprehensiveness of HARPOON in identifying patches for target vulnerabilities, we answer the following four research questions (RQs):
- RQ1: Identification Effectiveness. How accurately can HARPOON identify patches of the vulnerability?
- RQ2: Ablation Study. How does each component of HARPOON contribute to its overall performance?
- RQ3: Computational Cost. What is the computational overhead of HARPOON?
- RQ4: In-the-Wild Evaluation. Can HARPOON effectively identify patches in real-world programs?
- Dataset: Since there is no existing dataset providing such multi-commit patch for each CVE, we first construct a vulnerability-patch benchmark dataset with comprehensive patch annotations.
Data collection. Due to the impracticality of analyzing all CVEs, we selected the top-10 popular open-source projects, written in C/C++, Java, and Python, respectively, each with more than 1K GitHub stars. In total, we retrieved 30 projects. We then collected all CVE-listed vulnerabilities associated with these projects. Because fixing commits are not consistently maintained on CVE pages, we supplemented the fixing commit information for each CVE by manually retrieving relevant commits from multiple sources, including NVD [5], Debian Security [6], and the GitHub Advisory Database [24]. Eventually, we obtained 2,374 CVEs with publicly available fixing commits, of which 562 involved multi-commit patches.
Benchmark construction. Although we collected fixing commits from various sources, some patches remain missing from publicly maintained vulnerability databases [25]. In addition, the definitions of multi-commit patches across different vulnerability management platforms are slightly different. For instance, GitHub Advisory Database, NVD, and the benchmark given by SHIP [13] treat identical fixes applied to different locations within the same project as multi-commit patches; contrarily, we treat them as single-commit patches. Hence, automatically retrieved vulnerability-patch data may be incomplete or inconsistent, making it unsuitable for direct use as a benchmark ground truth for evaluating the effectiveness and comprehensiveness of patch identification in the paper.
Therefore, we manually inspected all 562 vulnerabilities recorded with multi-commit patches and a random sample of 1,200 vulnerabilities recorded with single-commit patches. Specifically, two PhDs with over five years of software security research experience independently checke and refined the collected data using the following procedures:
-
Backport Deduplication. The same patch may be applied to multiple software versions, causing backported commits to be mistakenly counted as distinct patches during automated commit collection. Following the approach proposed by Shariffdeen et al. [26], we analyzed the semantics of each fixing commit to determine whether any semantically-equivalent commits existed in any previous versions of the project.
-
Remediation Chain Completion. Publicly maintained patches are often incomplete — some vulnerabilities may only have a small subset of their associated patches available. We further manually examined fixing commits published within a temporal window around each collected fixing commit. Based on existing observations [18] that related patches are typically committed within 33 days of one another, we thus set the search window to 33 days before and after the commit date of each collected fixing commit. If multiple fixing commits were detected, we iteratively searched for additional nearby fixing commits until the remediation chain can no longer be expanded.
They then cross-validated the results to analyze the disagreements. Disagreements were resolved through discussion to reach a consensus with a Kappa score = 0.86, indicating an almost perfect level of agreement [27]. We finally constructed a vulnerability-patch benchmark consisting of patches for 1,207 vulnerabilities. These include 188 multi-commit patches and 1,019 single-commit patches, comprising 1,583 fixing commits.
- Default settings: HARPOON employs GPT-5-Nano [22] as the default LLM due to its favorable balance between effectiveness and computational cost.
B. RQ1: Identification Effectiveness
We applied HARPOON to the vulnerability-patch benchmark to evaluate its effectiveness in identifying patches for each target vulnerability and its comprehensiveness in covering all fixing commits associated with the vulnerability. Furthermore, we compared HARPOON against four state-of-the-art patch identification approaches, TAPER [12], VFCFinder [9], SHIP [13] and Prospector [11], as they have been shown to outperform other existing approaches.
- Experiment Setup: The definition of multi-commit patch identification varies slightly across existing studies, and most patch identification approaches focus on identifying single-commit patches, which makes the comparison challenging. Correspondingly, we conducted three types of comparisons to separately assess commit identification effectiveness and commit coverage comprehensiveness:
- Commit-Level comparison (abstract as Commit). This evaluates commit identification effectiveness. A fixing commit is correctly identified if it belongs to the ground-truth patch of the target vulnerability.
- CVE-Level Partial Matching (CVE-P): This evaluates the effectiveness of identifying vulnerability-specific patches. An identified patch is labeled correct if every fixing commit within the patch is included in the ground-truth patch of the target vulnerability, without introducing any irrelevant commits.
- CVE-Level Exact Matching (CVE-E): This assesses the comprehensiveness and effectiveness of identifying vulnerability-specific patches. An identified patch is considered correct only if it includes all commits in the ground-truth patch of the vulnerability and does not introduce any irrelevant commits.
Notably, VFCFinder and Prospector formulate vulnerability-specific patch identification as a ranking task, where they return a ranked top- candidate commits instead of directly outputting a single-commit or a multi-commit patch. Without knowing whether a target vulnerability involves a single-commit or a multi-commit patch, we considered two settings for determining the value of : 1) we used the number of fixing commits identified by HARPOON as the hint of the commit number associated with the vulnerability, and set accordingly (denoted as Tool); 2) we followed the top-ranked evaluation mentioned in the original papers to set
TABLE I: Performance on Single-Commit Patch Identification.
| Tool | #D | #C | P(%) | R(%) | F1(%) |
|---|---|---|---|---|---|
| VFCFinder | 278 | 76 | 27.34 | 9.30 | 13.89 |
| Prospector | 948 | 848 | 89.45 | 92.27 | 90.84 |
| SHIP | 917 | 603 | 65.76 | 85.53 | 74.35 |
| Taper | 799 | 0 | 0.00 | 0.00 | 0.00 |
| HARPOON | 954 | 886 | 92.87 | 93.17 | 93.02 |
Note: #D and #C denote the numbers of detected and confirmed cases; P, R, and F1 denote Precision, Recall, and F1 Score.
accordingly, i.e., in VFCFinder [9] and in Prospector (denoted as Tool).
- Results Analysis: Table I and Table II present all the fix identification results for single-commit patches and multi-commit patches, respectively. Among 1,207 vulnerabilities, HARPOON successfully identified single-commit patches for 886 out of 1,019 vulnerabilities and multi-commit patches for 104 out of 188 vulnerabilities, outperforming all state-of-the-art approaches.
Vulnerabilities with single-commit patch. HARPOON achieves an commit identification precision of 92.87%, a recall of 93.17%, and an F1 of 93.02%. Although Prospector correctly identified single-commit patches for 848 vulnerabilities, achieving an F1 of 90.84%, it introduced 100 false positives, causing a lower precision (89.45%), ultimately reducing the entire performance. VFCFinder and SHIP only correctly identified 76 and 603 vulnerabilities with single-commit patches, respectively.
After manually inspecting the failed cases, we found that VFCFinder, SHIP, and Prospector usually misclassify functional-improvement and refactoring commits as vulnerability-specific fixing commits. As these approaches rely heavily on lexical matching and semantic similarity between vulnerability descriptions and commit information, they fail to differentiate fixing commits from semantically similar but irrelevant commits. Taper performs the worst, failing to identify any correct fixing commits because it heavily relies on LLMs for fixing-commit identification. However, LLMs struggle to accurately identify fixing commits when a large number of candidate commits are provided, especially when many content-similar, but vulnerability-irrelevant commits appear.
Instead, HARPOON combines the patterns of both code modifications and commit descriptions for patch identification, which are less affected by such misleading textual similarities. We also manually inspected the 133 cases misclassified by HARPOON and observed 64 cases are caused by insufficient vulnerability-reference information. Although HARPOON supports vulnerability analysis at different levels of granularity, ranging from fine-grained vulnerability identifiers to coarse-grained vulnerability keywords, some CVE reports remain too vague and contain only a single-sentence description (e.g., "Ansible prior to 1.5.4 mishandles the evaluation of some strings" [28]). Hence, HARPOON failed to pinpoint anchor commits effectively for subsequent fixing commit identification. In addition, 62 cases failed because some vulnerability
TABLE II: Performance on Multi-Commit Patch Identification.
| Tool | Commit | CVE-E | CVE-P | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #D | #C | P(%) | R(%) | F1(%) | #D | #C | P(%) | R(%) | F1(%) | #D | #C | P(%) | R(%) | F1(%) | |
| VFCFinder_HINT | 258 | 51 | 19.77 | 14.29 | 16.59 | 116 | 10 | 8.62 | 12.20 | 10.10 | 116 | 24 | 20.69 | 25.00 | 22.64 |
| VFCFinder_ORIG | 341 | 36 | 10.56 | 6.39 | 7.96 | 130 | 7 | 5.38 | 3.72 | 4.40 | 130 | 7 | 5.38 | 3.72 | 4.40 |
| Prospector_HINT | 287 | 215 | 74.91 | 43.70 | 55.21 | 136 | 57 | 41.91 | 52.29 | 46.53 | 136 | 88 | 64.71 | 62.86 | 63.77 |
| Prospector_ORIG | 470 | 285 | 60.64 | 50.62 | 55.18 | 161 | 84 | 52.17 | 44.68 | 48.14 | 161 | 84 | 52.17 | 44.68 | 48.14 |
| SHIP | 132 | 77 | 58.33 | 13.68 | 22.16 | 93 | 21 | 22.58 | 18.10 | 20.10 | 93 | 38 | 40.86 | 28.57 | 33.63 |
| Taper | 97,916 | 62 | 0.06 | 11.01 | 0.13 | 151 | 0 | 0.00 | 0.00 | 0.00 | 151 | 0 | 0.00 | 0.00 | 0.00 |
| HARPOON | 364 | 339 | 93.13 | 62.89 | 75.08 | 163 | 104 | 63.80 | 80.62 | 71.23 | 163 | 138 | 84.66 | 84.66 | 84.66 |
Note: #D and #C denote the numbers of detected and confirmed cases, respectively; P, R, and F1 denote Precision, Recall, and F1 Score.
types share similar CVE features and code-change patterns. For example, buffer overflows and input-validation errors may involve similar vulnerable inputs and boundary checks. When only coarse vulnerability features are available, HARPOON is difficult to accurately distinguish patches for similar vulnerability types. 7 cases were failed because of the large time gap between the fixing commits and the vulnerability disclosure date, which makes our predefined temporal window unable to cover the fixing commits.
Vulnerabilities with multi-commit patches. Multi-commit patch identification requires recovering a sequence of fixing commits, demanding both effective commit detection and comprehensive commit coverage. The results demonstrate that HARPOON outperforms the state-of-the-art tools in terms of both effectiveness and comprehensiveness across all settings, including Hint and Orig for ranking-based approaches.
While considering effectiveness (i.e., Commit), HARPOON successfully identified 355 out of the 564 fixing commits, achieving 93.13% precision, 62.89% recall, and an F1 score of 75.08%, substantially outperforming all baselines. Among the state-of-the-art approaches, Prospector_HINT achieved the strongest baseline performance, with a precision of 74.91%, a recall of 43.70%, and an F1 score of 55.21%. However, its recall remained considerably lower than that of HARPOON because Prospector ranked the fixing commits independently without considering their correlations. Consequently, some actual fixing commits with low textual similarity to the vulnerability description, despite being related to the same remediation process, received lower rankings. VFCFinder also failed to retrieve the commit correlations because of the similar ranking mechanism. Although SHIP examined relationships among commits, its analysis depends heavily on the quality of vulnerability reports and only performed well on high-quality reports. Taper is heavily restricted by the effectiveness of LLMs, which performed the worst.
Regarding the comprehensiveness commit coverage (i.e., CVE-E and CVE-P), HARPOON performs consistently well, which exactly identified 104 out of 188 patches with 63.8% precision, 80.62% recall, and an F1 of 71.23%, and partially identified 138 of them, yielding 84.66% precision, 84.66% recall, and an F1 of 84.66%. By comparison, existing approaches suffer from a significant performance degradation when comprehensiveness is considered, even under partial matching. It indicates that existing solutions struggle to deal with multi-commit patch identification.
Through our manual observation of the failure cases of HARPOON, we found that the anchor commits for 24 vulnerabilities were incorrectly identified due to insufficient vulnerability-reference information and erroneous LLM-based extraction of vulnerable code elements. The limitation is discussed further in Section V. In terms of the missing commits for 34 vulnerabilities, 19 cases were missed because their remediation patterns were uncommon and therefore not covered by any identified anchor commit; the remaining 15 failed to be recognized by the current tree-sitter-based dependency analysis.
C. RQ2: Ablation Study
We further assessed the contribution of each module to the patch identification. We separately removed the Coverage-Completion reconstruction module (w/o Coverage), the Dependency-Driven reconstruction module (w/o Dependency), and the Patch Refinement module (w/o Refinement), and measured the performance changes. The experimental results are presented in Table III.
Coverage-Completion Patch Reconstruction. When Coverage-Completion was removed, the results of correct commit identification remained almost unchanged. However, HARPOON overlooked 16 commits, causing the recall of commit dropped from 62.89% to 59.93%. It is because the commits with similar patch patterns but applied across different components, sometimes appear to be unrelated, despite potentially contributing to the same vulnerability remediation. With only the dependency-driven strategy, the system is unable to capture dispersed fixes that share similar remediation logic but are not explicitly dependent on one another. Since partial sequence matching does not require comprehensiveness, removing the coverage component does not adversely affect the overall performance.
Dependency-Driven Patch Reconstruction. Removing Dependency-Driven leads to a more substantial performance degradation, where a large portion of fixing commits could not be located, causing a decrease in CVE-E, i.e., precision dropped from 63.80% to 41.72%, recall dropped from 62.89% to 50.83%, and F1 dropped from 71.23% to 53.13%. It is because HARPOON can only identify commits independently
TABLE III: Component Effectiveness Analysis of HARPOON
| Variant | Commit | CVE-E | CVE-P | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #D | #C | P(%) | R(%) | F1(%) | #D | #C | P(%) | R(%) | F1(%) | #D | #C | P(%) | R(%) | F1(%) | |
| w/o Coverage | 348 | 323 | 92.82 | 59.93 | 72.84 | 163 | 88 | 53.99 | 77.88 | 63.77 | 163 | 138 | 84.66 | 84.66 | 84.66 |
| w/o Dependency | 298 | 274 | 91.95 | 50.83 | 65.47 | 163 | 68 | 41.72 | 73.12 | 53.13 | 163 | 138 | 84.66 | 84.66 | 84.66 |
| w/o Refinement | 485 | 339 | 69.90 | 64.57 | 67.13 | 163 | 65 | 39.88 | 72.22 | 51.38 | 163 | 98 | 60.12 | 79.67 | 68.53 |
| w/ gpt-4o-mini | 359 | 331 | 92.20 | 61.75 | 73.90 | 155 | 104 | 67.10 | 75.91 | 71.20 | 158 | 130 | 82.28 | 81.25 | 81.76 |
| w/ gemini-3.1-flash | 358 | 330 | 92.18 | 61.57 | 73.83 | 155 | 105 | 67.74 | 76.09 | 71.67 | 155 | 128 | 82.58 | 79.50 | 81.01 |
| HARPOON | 364 | 339 | 93.13 | 62.89 | 75.08 | 163 | 104 | 63.80 | 80.62 | 71.23 | 163 | 138 | 84.66 | 84.66 | 84.66 |
Note: #D and #C denote the numbers of detected and confirmed cases, respectively; P, R, and F1 denote Precision, Recall, and F1 Score.
through semantic analysis without dependency information. Eventually, HARPOON may miss fixing commits with vague descriptions and misclassify functionality-related commits as vulnerability fixes when their descriptions are similar to those of anchor commits.
Patch Refinement. Removing patch refinement leads to noticeable degradation in precision for commit identification (i.e., Commit) from 93.13% to 69.9%, while recall remains unchanged. It is because candidate commits that are related to vulnerabilities, but do not contribute to vulnerability remediation, cannot be excluded effectively. The absence of such refinement also negatively affected the performance of CVE-E and CVE-P, causing the precision of CVE-E dropped to 39.88% and CVE-P to 60.12%,
Impact of Different LLMs. As HARPOON relies on LLMs for anchor commit identification and candidate refinement, we evaluated the impact of different LLMs on the overall performance of HARPOON. Specifically, we replaced the default gpt-5-nano model used in HARPOON with two alternative models: gpt-4o-mini, which is smaller than the default model, and gemini-3.1-flash, which adopts a different model architecture. To verify the necessity of HARPOON, rather than directly using LLMs for patch recognition, we further evaluated LLMs under a direct prompting setting for patch identification.
Table III shows the result. Both alternative models achieved performance comparable to the default model (gpt-5-nano, 75.08%), yielding Commit-level F1 scores of 73.90% (gpt-4o-mini) and 73.83% (gemini-3.1-flash). For CVE-E, gpt-4o-mini and gemini-3.1-flash achieve comparable F1 scores of 71.20% and 71.67%, respectively, closely matching the 71.23% achieved by gpt-5-nano. For CVE-P, gpt-4o-mini and gemini-3.1-flash achieve comparable F1 scores of 81.76% and 81.01%, approaching the 84.66% achieved by gpt-5-nano. Furthermore, when applying gpt-5-nano directly to patch identification without HARPOON, the model failed to identify any complete multi-commit patch and produced no correct fixing commits. These indicate that the superior performance of HARPOON does not heavily rely on LLM capability.

Fig. 3: Execution Time Comparison.
D. RQ3: Computational Cost
As Prospector performed best among the state-of-the-art approaches, we focused the computational-cost comparison on HARPOON and Prospector. To avoid skewing the results due to failed or excessively time-consuming cases, we conducted the cost evaluation only on cases successfully handled by both approaches. The cost evaluation includes 828 vulnerabilities, consisting of 752 vulnerabilities with single-commit patches and 76 vulnerabilities with multi-commit patches. Overall, these vulnerabilities involve 934 fixing commits.
The comparison is shown in Figure 3. Overall, HARPOON achieved a mean execution time of 61.4s, substantially lower than the 162.0s required by Prospector. Similarly, the median execution time of HARPOON is 40.0s, compared with 130.5s for Prospector, indicating that the improvement is not driven by a small number of favorable cases but is consistent across the benchmark. As illustrated by the boxplots, HARPOON exhibits a noticeably more consistent execution-time distribution, with a lower median, narrower interquartile range, and shorter whiskers than Prospector. Although there are two cases requiring more than 200s, they correspond to uncommon cases that require substantially larger candidate spaces during patch analysis. Overall, HARPOON achieves both lower average cost and more stable execution behavior than Prospector.
E. RQ4: In-the-Wild Evaluation
We further applied HARPOON to a large-scale dataset, containing 30 projects with 5,146 CVEs. Due to the page limit, the top-5 projects containing the largest number of multi-commit patches are reported in Table IV, namely, ImageMagick (104), FFmpeg (87), Wireshark (80), Apache HTTP Server
TABLE IV: Large-Scale Patch Identification Results across Representative Projects.
| Project | #Patches | #Multi | Multi | High | Crit. |
|---|---|---|---|---|---|
| ImageMagick | 398 | 104 | 26.1% | 23.1% | 5.8% |
| FFmpeg | 316 | 87 | 27.5% | 40.2% | 6.9% |
| Wireshark | 418 | 80 | 19.1% | 36.2% | 0.0% |
| httpd | 113 | 72 | 63.7% | 38.9% | 15.3% |
| Django | 98 | 71 | 72.4% | 46.5% | 12.7% |
| Top-5 Total | 1,343 | 414 | 30.8% | 36.0% | 7.7% |
| Overall | 3,269 | 756 | 23.1% | 36.5% | 8.9% |
(72), and Django (71). We found that these projects are typically large and long-maintained open-source systems with active maintenance across multiple branches and versions, making vulnerability remediation more likely to be distributed across multiple commits. The rest results are available in our anonymized artifact [15]. In total, HARPOON successfully identified 3,269 vulnerability patches, including 2,513 single-commit patches and 756 multi-commit patches. All these analyses were completed within 68 hours.
While inspecting the results, we found that vulnerabilities with multi-commit patches include 276 (36.5%) HIGH-severity vulnerabilities and 67 (8.9%) CRITICAL-severity vulnerabilities. Most multi-commit patches involve only a few additional fixing commits, with two to four commits being the most common, accounting for 79.4%. There are also 9 vulnerabilities requiring more than ten commits for completed mitigation. The largest multi-commit patch even contains 19 fixing commits, illustrating that comprehensive patch reconstruction can become more challenging for long remediation chains. When examining the vulnerability remediation period, the median remediation span is 4.2 days. Approximately 48% of multi-commit patches are completed within one week and 81% within one month, although some remain unresolved for several months. This highlights that vulnerability remediation may remain incomplete for extended periods, emphasizing the importance of timely identifying complete multi-commit patches before vulnerabilities are mistakenly considered fully remediated and deployed in practice.
V. DISCUSSION
LLM Robustness. HARPOON relies on LLMs for semantic refinement and noise filtering of candidate multi-commit patches. Although LLMs are effective at distinguishing vulnerability-related commits from irrelevant noise, their decisions remain susceptible to hallucinations and reasoning errors. Consequently, incorrect commit selections may still occur, posing a potential threat to the robustness of HARPOON.
Static Analysis Reliability. The dependency-driven reconstruction module leverages tree-sitter-based static analysis to capture inter-commit dependency relationships. While efficient, this approach may be less reliable in complex codebases, particularly in the presence of implicit dependencies, potentially resulting in incomplete multi-commit patch reconstruction. Nevertheless, given a correctly identified anchor commit, the approach remains effective for the majority of cases.
VI. RELATED WORK
Existing research on vulnerability patch identification mainly falls into three categories: vulnerability-specific patch identification, silent fix identification, and empirical studies of vulnerability fixing practices. The first two develop fix identification techniques, whereas the third reveals the complexity of real-world vulnerability remediation. We briefly review each line of work below.
Vulnerability-specific patch identification. This line of research aims to identify patches for specific vulnerabilities. Existing approaches [8]–[10], [10], [11], [29], [30] typically model this task as one-to-one matching, potentially assuming a single fixing commit per vulnerability, thereby overlooking multi-commit patches and leading to incomplete results. The prior work, SHIP [13], relies on similarity-based filtering, which fails to capture multi-commit patch characteristics and thus cannot achieve comprehensive identification.
Silent fix identification. Unlike patch identification for known vulnerabilities, this line of work focuses on uncovering vulnerability-fixing commits associated with undisclosed vulnerabilities from code changes and assessing their severity as an early warning mechanism. Existing approaches primarily rely on deep learning [31]–[35] and LLM-based reasoning [36]. EarlyVulnFix [37] leverages static analysis to identify vulnerability-fixing commits by analyzing code differences across versions. Dong et al. [14] further conduct an empirical study on the distribution, silent window, and associated risks of silent vulnerability fixes in real-world projects.
Analysis of vulnerability fixing practices. Recent studies suggest that vulnerability fixing is more complex than commonly assumed. Sun et al. [38] show that vulnerability databases often provide incomplete and inconsistent patch information, hindering reliable patch linkage. Xie et al. [39] demonstrate that vulnerability remediation frequently spans multiple commits rather than a single atomic fix. Meanwhile, Tan et al. [40] and Li et al. [41] reveal the prevalence of cross-branch backporting, introducing additional delays and inconsistencies. These findings collectively indicate that vulnerability fixing is an evolving, multi-stage process, calling for process-aware modeling beyond simplified assumptions.
VII. CONCLUSION
This paper addresses the underexplored problem of multi-commit patch identification. We propose HARPOON, a unified framework integrating anchor commit identification, multi-commit patch reconstruction, and noise refinement. Experiments show that HARPOON significantly outperforms existing methods on both single- and multi-commit patch identification, achieving an F1 of 87.25% at the commit level and over 90% at the CVE level, with improvements exceeding 20% compared with existing work. In the wild, HARPOON identifies 3,269 vulnerability patches, including 323 high-severity (CRITICAL/HIGH) cases previously absent from major databases.
(e.g., NVD, Debian Security, GHSA), covering 144 multi-commit patches. We believe our approach and findings provide valuable insights into vulnerability remediation behaviors and can facilitate future research on patch identification.
REFERENCES
[1] “Open source software vulnerabilities found in 86% of codebases,” https://www.securitymagazine.com/articles/101420-open-source-software-vulnerabilities-found-in-86-of-codebases, 2025.
[2] Synopsys, Inc., https://investor.synopsys.com/news/news-details/2024/New-Synopsys-Report-Finds-74-of-Codebases-Contained-High-Risk-Open-Source-Vulnerabilities-Surging-54-Since-Last-Year/default.aspx, 2024.
[3] FIRST, “Vulnerability forecast 2026: The year ahead,” https://www.first.org/blog/20260211-vulnerability-forecast-2026, Feb. 2026, forum of Incident Response and Security Teams (FIRST).
[4] “Snyk,” https://snyk.io/, 2025.
[5] “National vulnerability database,” 2026. [Online]. Available: https://nvd.nist.gov/
[6] “Debian security information,” 2026. [Online]. Available: https://www.debian.org/security/
[7] National Institute of Standards and Technology, “Nist sp 800-61r3,” National Institute of Standards and Technology, NIST Special Publication 800-61r3, 2025. [Online]. Available: https://csrc.nist.gov/pubs/sp/800/61/r3/final
[8] X. Tan, Y. Zhang, C. Mi, J. Cao, K. Sun, Y. Lin, and M. Yang, “Locating the security patches for disclosed oss vulnerabilities with vulnerability-commit correlation ranking,” in Proceedings of the 28th ACM SIGSAC Conference on Computer and Communications Security (CCS), 2021, pp. 3282–3299.
[9] T. Dunlap, E. Lin, W. Enck, and B. Reaves, “Vfcfinder: Pairing security advisories and patches,” in Proceedings of the 19th ACM Asia Conference on Computer and Communications Security (AsiaCCS), 2024, pp. 1128–1142.
[10] K. Li, J. Zhang, S. Chen, H. Liu, Y. Liu, and Y. Chen, “Patchfinder: A two-phase approach to security patch tracing for disclosed vulnerabilities in open-source software,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), 2024, pp. 590–602.
[11] A. Sabetta, S. E. Ponta, R. C. Lozoya, M. Bezzi, T. Sacchetti, M. Greco, G. Balogh, P. Hegedäs, R. Ferenc, R. Paramitha et al., “Known vulnerabilities of open source projects: Where are the fixes?” IEEE Security & Privacy, vol. 22, no. 2, pp. 49–59, 2024.
[12] D. Ran, L. Li, L. Zhu, Y. Cao, L. Zhao, X. Tan, G. Liang, Q. Wang, and T. Xie, “Efficient and robust security-patch localization for disclosed oss vulnerabilities with fine-tuned llms in an industrial setting,” in Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering (FSE), 2025, pp. 262–273.
[13] Y. Song, D. Xie, L. Xu, H. Zhang, C. Zhou, and X. Xie, “Not every patch is an island: LIm-enhanced identification of multiple vulnerability patches,” in 40th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2025, pp. 996–1007.
[14] J. Dong, X. Chen, W. Susilo, N. Sun, A. Shaghaghi, and S. Ma, “What lies beneath: an empirical study of silent vulnerability fixes in open-source software,” in 55th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 2025, pp. 345–357.
[15] Anonymous, “Anonymous artifact,” https://anonymous.4open.science/r/Harpoon-7431, 2026.
[16] “Iso/fiec 30111:2019,” Tech. Rep., 2019. [Online]. Available: https://www.iso.org/standard/69725.html
[17] “Cve-2018-8825,” 2018. [Online]. Available: https://nvd.nist.gov/vuln/detail/CVE-2018-8825
[18] F. Li and V. Paxson, “A large-scale empirical study of security patches,” in Proceedings of the 24th ACM SIGSAC Conference on Computer and Communications Security (CCS), 2017, pp. 2201–2215.
[19] “Cisa insights: Remediate vulnerabilities for internet-accessible systems,” 2019. [Online]. Available: https://www.cisa.gov/sites/default/files/publications/CISAInsights-Cyber-RemediateVulnerabilitiesofInternetAccessibleSystems_S508C.pdf
[20] “How to define vulnerability remediation slas,” 2023. [Online]. Available: https://nucleussec.com/blog/how-to-define-vulnerability-remediation-slas-shortcuts
[21] “It’s time to rethink the 30/60/90-day approach to vulnerability management,” 2024. [Online]. Available: https://xmcyber.com/blog/its-time-to-rethink-the-30-60-90-day-approach-to-vulnerability-management/
[22] “Gpt-5 nano,” 2026. [Online]. Available: https://developers.openai.com/api/docs/models/gpt-5-nano
[23] “tree-sitter,” 2026. [Online]. Available: https://github.com/tree-sitter/tree-sitter
[24] “Github advisory database,” 2026. [Online]. Available: https://github.com/advisories
[25] T. Dunlap, E. Lin, W. Enck, and B. Reaves, “Vfcfinder: Pairing security advisories and patches,” in Proceedings of the 19th ACM Asia Conference on Computer and Communications Security, 2024, pp. 1128–1142.
[26] R. Sharifdeen, X. Gao, G. J. Duck, S. H. Tan, J. Lawall, and A. Roychoudhury, “Automated patch backporting in linux (experience paper),” in Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), 2021, pp. 633–645.
[27] J. R. Landis and G. G. Koch, “The measurement of observer agreement for categorical data,” biometrics, pp. 159–174, 1977.
[28] “Cve-2014-2686,” 2014. [Online]. Available: https://nvd.nist.gov/vuln/detail/CVE-2014-2686
[29] S. Wang, Y. Zhang, L. Bao, X. Xia, and M. Wu, “Vcmatch: a ranking-based approach for automatic security patches localization for oss vulnerabilities,” in 29th IEEE International Conference on Software Analysis, Evolution and Reengineering. IEEE, 2022, pp. 589–600.
[30] J. Zhang, X. Hu, L. Bao, X. Xia, and S. Li, “Dual prompt-based few-shot learning for automated vulnerability patch localization,” in 31st IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 2024, pp. 940–951.
[31] J. Zhou, M. Pacheco, Z. Wan, X. Xia, D. Lo, Y. Wang, and A. E. Hassan, “Finding a needle in a haystack: Automated mining of silent vulnerability fixes,” in 36th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2021, pp. 705–716.
[32] J. Zhou, M. Pacheco, J. Chen, X. Hu, X. Xia, D. Lo, and A. E. Hassan, “Colefunda: Explainable silent vulnerability fix identification,” in IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 2023, pp. 2565–2577.
[33] J. Sun, Z. Xing, Q. Lu, X. Xu, L. Zhu, T. Hoang, and D. Zhao, “Silent vulnerable dependency alert prediction with vulnerability key aspect explanation,” in IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 2023, pp. 970–982.
[34] S. Wang, X. Wang, K. Sun, S. Jajodia, H. Wang, and Q. Li, “Graphspd: Graph-based security patch detection with enriched code semantics,” in IEEE 44th Symposium on Security and Privacy (S&P). IEEE, 2023, pp. 2409–2426.
[35] X.-C. Wen, Z. Lin, C. Gao, H. Zhang, Y. Wang, and Q. Liao, “Repository-level graph representation learning for enhanced security patch detection,” in IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE, 2025, pp. 1–13.
[36] X. Yang, W. Zhu, M. Pacheco, J. Zhou, S. Wang, X. Hu, and K. Liu, “Code change intention, development artifact, and history vulnerability: Putting them together for vulnerability fix detection by llm,” Proceedings of the ACM on Software Engineering, vol. 2, no. FSE, pp. 489–510, 2025.
[37] Z. Wen, J. Zhou, M. Pan, S. Wang, X. Hu, T. Xu, T. Zhang, and X. Li, “Silent taint-style vulnerability fixes identification,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), 2024, pp. 428–439.
[38] J. Sun, Z. Xing, X. Xia, Q. Lu, X. Xu, and L. Zhu, “Aspect-level information discrepancies across heterogeneous vulnerability reports: Severity, types and detection methods,” ACM Transactions on Software Engineering and Methodology (ToSEM), vol. 33, no. 2, pp. 1–38, 2023.
[39] Z. Xie, M. Wen, Z. Wei, and H. Jin, “Unveiling the characteristics and impact of security patch evolution,” in Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (ASE), 2024, pp. 1104–1106.
[40] X. Tan, Y. Zhang, J. Cao, K. Sun, M. Zhang, and M. Yang, “Understanding the practice of security patch management across multiple branches in oss projects,” in Proceedings of the ACM Web Conference (WWW), 2022, pp. 767–777.
[41] X. Li, Z. Zhang, Z. Qian, T. Jaeger, and C. Song, “An investigation of patch porting practices of the linux kernel ecosystem,” in Proceedings of the 21st International Conference on Mining Software Repositories (MSR), 2024, pp. 63–74.