Conceptio › Archive › arXiv CS
arXiv CS open access

Found, but Not Fixed : From Software Vulnerability Discovery to Fixes with Iterative LLM Pipelines

Youssef Gamal et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
software-architecturesoftware-engineeringtesting
Software vulnerabilities persist as a critical threat despite the deployment of sophisticated detection tools and AI assistants. While detection has advanced, the subsequent code repair phase remains a primary bottleneck; manual intervention is inherently slow, costly, and prone to introducing secon
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Found, but Not Fixed From Software Vulnerability Discovery to Fixes with Iterative LLM Pipelines Youssef Gamala , Mohamad Fakiha , Halima Bouzidia , Rahul Dharmajia , Gustavo Quiros Arayab , Oluwatosin Ogundareb , Mst Ayesha Siddikac , Mohammad Abdullah Al Faruquea a University of California, Irvine, Dept. of Electrical Engineering and Computer Science Irvine, CA, USA b Siemens Technology, Princeton, NJ, USA

arXiv:2611.19719v1 [cs.SE] 15 Nov 2026

c Jahangirnagar University, Dept. of Computer Science and Engineering Dhaka, Bangladesh

Abstract Software vulnerabilities persist as a critical threat despite the deployment of sophisticated detection tools and AI assistants. While detection has advanced, the subsequent code repair phase remains a primary bottleneck; manual intervention is inherently slow, costly, and prone to introducing secondary regressions and issues. In this paper, we investigate whether an iterative, LLM-based pipeline can provide a robust solution for the automated repair of vulnerable functions in real-world code. We propose a generalized framework that leverages the reasoning capabilities of Large Language Models (LLMs) through a multi-stage feedback loop. We benchmark this approach against state-of-the-art models, including GPT-4o, GPT-5.1, and Gemini 3 flash demonstrating that such a pipeline can achieve a high quality code repair. To support the broader security community, we provide our evaluation framework, fine-tuned weights, and comprehensive experimental dataset, on our website: https://sites.google.com/view/llm4cve Keywords: Automated Program Repair (APR), Large Language Models (LLMs), Iterative Refinement, AI for Secure Code, Software Security

1. Introduction Software is inherently human, and as a result, it is inherently flawed. Despite decades of advancement in software engineering, human developers continue to introduce costly vulnerabilities stemming from a fundamental disconnect with cybersecurity principles [1]. These flaws serve as open invitations for adversaries seeking to exfiltrate sensitive credentials and high-value assets [2]. With the frequency of exploitation on a steady trajectory upward1 , the ability to bridge the gap between discovery and repair has never been more critical. The economic repercussions are staggering: billions of dollars in lost value [3, 4], millions of man-hours lost to manual resolution2 , and the pervasive leakage of sensitive user data [5, 6]. The 2021 Log4shell vulnerability [7] in the open-source Apache Log4j library remains a haunting testament to this reality, where a single exploited vulnerability in a ubiquitous library could compromise millions of systems within days, highlighting the critical importance of rapid patching. The stakes of the program repair gap are no longer confined to digital servers; they have become kinetic. The Internet of Things (IoT) revolution has embedded software into the physical fabric of our lives [8], yet these systems remain dangerously exposed [9, 10, 11]. Exploiting these flaws can turn household devices into botnets [12] or, more catastrophically, disrupt

national power grids [13]. This danger is perhaps most acute in Autonomous Vehicles (AVs) [14]. In safety-critical control software, a bug is not just a glitch; it is a life-threatening failure for passengers and pedestrians alike. While automated testing suites have improved our ability to verify these systems [15], AVs remain susceptible to the same legacy software vulnerabilities that affected traditional computer systems. The common denominator in these high-stakes systems is their profound reliance on open-source software, predominantly written in C [16]. Foundational projects such as the Linux kernel3 , OpenSSL4 , and FFmpeg5 are the bedrock of modern infrastructure and, consequently, the primary targets for global adversaries. This has resulted in a disproportionate accumulation of Common Vulnerabilities and Exposures (CVEs) within these codebases [17]. While the CVE system provides a vital centralized repository for documenting vulnerabilities, it exposes a systemic weakness: CVE entry is a diagnosis, not a fix. Knowing a vulnerability exists within software code does not facilitate its repair. Existing Automated Program Repair (APR) methods strive to patch software with minimal human intervention [18, 19, 20, 21, 22, 23]. However, these systems often hit a complexity ceiling. Traditional automated repairs frequently generate invalid code [24] or introduce secondary security regressions [25]. Most critically, these techniques typically require a

1 Internet Crime Complaint Center 2023 Internet Crime Report, 2023

3 Linux Kernel v6.8, Linux Foundation, 2024

2 Osterman Research: Second Annual State of Ransomware Report - Aus-

4 OpenSSL v3.2.1, The OpenSSL Project, 2024

tralia, 2023

5 FFmpeg v6.1.1, FFmpeg Team, 2023

• A detailed evaluation of LLM4CVE for repairing various classes of CVEs and CWEs using LLMs with a diverse range of capabilities—spanning frontier proprietary systems to state-of-the-art open-source architectures— including Llama 3, GPT-3.5-Turbo9 , GPT-4o10 , GPT5.1, and Gemini 3 flash. This cross-section of models serves to showcase the performance and versatility of the LLM4CVE framework across different training philosophies and parameter scales. 2. Background

Figure 1: Bridging the gap: How an iterative repair pipeline prevents exploitation by shortening the time-to-repair for software code.

2.1. The Taxonomy of Failure: CVEs & CWEs The modern security landscape relies heavily on centralized repositories to document and track software flaws. Entities such as the National Vulnerability Database (NVD)11 and MITRE’s Common Vulnerabilities and Exposures (CVE)12 serve as the industry standard for reporting discovered bugs. When a vulnerability is identified in widely-deployed software, it is assigned a unique CVE identifier, used for sharing technical descriptions and mitigation strategies [2]. While CVEs target specific, instance-based software flaws, the Common Weakness Enumeration (CWE) provides a formal language for describing underlying vulnerability types (e.g., Buffer Overflows, SQL Injection) [40]. However, a critical limitation exists: these databases are designed for identification, not rectification. They provide a comprehensive diagnosis of a system’s failure but offer no automated mechanism for the repair. Bridging this gap requires transitioning from manual documentation to an automated repair paradigm that can interpret these complex reports and synthesize functional code.

subject-matter expert to guide the implementation [26]. This introduces a critical dependency: when vulnerabilities are found in unmaintained legacy code or when expert intervention is unavailable, the time-to-fix increases dramatically, creating an extended window of exposure for attackers. The emergence of highly capable Large Language Models (LLMs) represents a paradigm shift in addressing this vulnerability repair bottleneck. While early LLM implementations were prone to generating flawed or uncompilable code [27], state-of-the-art architectures like GPT-5.16 , Gemini 3 flash7 , and Llama 38 have demonstrated sophisticated reasoning and code synthesis capabilities. The rise of specialized models such as Code Llama [28], alongside Parameter-Efficient FineTuning (PEFT) [29] and Low-Rank Adaptation (LoRA) [30], has made it possible to tailor these models for the specific constraints of security patching [31, 32]. Furthermore, innovations in Mixture-of-Experts (MoE) [33] and the evolution of Prompt Engineering [34, 35, 36] as well as sophisticated pipelines [37, 38, 39] provide a robust toolkit for refining the accuracy and relevance of AI-generated repairs. In this work, we move beyond one-shot code generation to propose an iterative, LLM-driven repair paradigm, as illustrated in Figure 1. Rather than treating repair as a single predictive task, our approach treats it as a continuous refinement loop. We introduce LLM4CVE, a concrete implementation of this iterative pipeline that integrates LLMs with real-world CVE data to synthesize repair patches with minimal human oversight. Given a vulnerable code snippet, the pipeline iteratively generates, evaluates, and refines candidate fixes until a viable solution is reached. By incorporating LoRA fine-tuning and optimized prompt engineering, our framework automates the vulnerability repair process for complex, real-world CVEs. Our primary contributions include:

2.2. The Lifecycle of Vulnerability Repair The ultimate objective of any repair technique is to remediate software deficiencies, faults, errors, or failures [41], before they can be exploited. This process, often referred to as APR, typically follows a three-phase lifecycle: (1) Detection, (2) Patching, and (3) Verification [18]. 1. Detection: Identifying the precise location of a flaw using static analysis [42], machine learning classifiers [43, 44], or dynamic fuzzing [45]. 2. Patching: Generating a candidate fix. Traditional APR relies on heuristic-based or symbolic execution methods [46], which often struggle with the semantic complexity of real-world code. Deep learning approaches [19] have begun to address this by learning from massive datasets of human-authored commits. 3. Verification: Ensuring the generated patch is both functional and secure. This is typically achieved through regression test suites [47, 24], formal verification, or expert manual review [48].

• A novel automated pipeline for fixing security vulnerabilities in real-world software programs that requires minimal intervention from a skilled domain expert. • An optimized automated and iterative process that leverages LLMs reasoning capabilities to refine its output, thereby improving upon conventional tools.

9 GPT-3.5 Turbo, OpenAI, 2026 6 GPT-5, OpenAI, 2025

10 GPT-4o, OpenAI, 2024

7 Gemini 3 Flash, Google DeepMind, 2025

11 NVD, National Vulnerability Database, 2024

8 Llama 3, Meta Research, 2024

12 CVE, MITRE Corporation, 2026

2

Despite these established phases, traditional APR remains brittle, often producing patches that pass tests but fail in production or introduce new vulnerabilities. Our approach seeks to augment the first two stages of this lifecycle, as shown in Figure 2, by introducing a feedback-driven, iterative loop that mimics the way a human developer refines code.

and adapting them to the specific logic of vulnerability repair, we can move beyond merely ’finding’ bugs to autonomously ’fixing’ them through a feedback-driven, iterative process.

{

d

X

Domain-aware Embedding

int x; if (...)

Original Embedding

break;

Augmented Embedding

Figure 3: An Illustration of the Low-Rank Adaptation (LoRA) Process.

2.3.1. Parameter-Efficient Augmentation To bridge the gap between general-purpose reasoning and specialized security repair, models must be adapted to the nuances of specific CWEs. PEFT, specifically LoRA [30] (See Fig. 3), has emerged as the gold standard for this task. The primary challenge in adapting LLMs for security is their immense parameter count, which makes full-parameter fine-tuning computationally prohibitive and prone to catastrophic forgetting of general reasoning capabilities. LoRA circumvents this by freezing the pre-trained model weights W0 ∈ Rd×k and injecting trainable rank decomposition matrices. For a given weight update, the new weight W is represented as: W = W0 + ∆W = W0 + BA

Figure 2: The software vulnerability detection-and-repair lifecycle. Our iterative approach augments the traditional cycle by shortening the time-to-repair through autonomous feedback loops.

d×r

(1)

r×k

where B ∈ R , A ∈ R , and the rank r ≪ min(d, k). This approach drastically reduces the number of trainable parameters, often by a factor of 10,000, while maintaining the model’s ability to synthesize specialized security patches [53, 54]. When combined with 4-bit quantization through QLoRA [55], these models can be fine-tuned on consumer-grade hardware to remediate complex legacy codebases that were previously inaccessible to automated tools.

2.3. Large Language Models in Software Security The rise of LLMs has fundamentally altered the APR landscape, offering a potential solution to the repair gap by transforming diagnostic data into functional code. Based on the Transformer architecture and multi-head attention mechanisms [49], LLMs excel at capturing long-range dependencies and the complex syntax of programming languages [50, 51]. Unlike traditional rule-based APR tools, the attention mechanism allows these models to maintain context across large source files, a critical requirement for fixing vulnerabilities where the cause (e.g., an unvalidated input) and the effect (e.g., a buffer overflow) may be spatially distant within the codebase. While early models demonstrated surprising emergent coding abilities [52], the field has shifted toward highly specialized architectures designed for deep reasoning. Proprietary models like OpenAI’s GPT-4o offer immense reasoning power but remain black boxes with restrictive APIs13 , which can limit the depth of security-specific analysis and iterative refinement. Consequently, the research community has pivoted toward high-performance, open-source alternatives like Llama 3 and Mixtral [33]. These open-source models provide the deep transparency required for the domain-specific fine-tuning (e.g., on CVE/CWE datasets) central to our study. This shift directly addresses our central research question: Can an iterative pipeline finally bridge the vulnerability repair gap? By leveraging the inherent reasoning capabilities of these models

2.3.2. Iterative Prompt Engineering & Reasoning The quality of an automated repair is largely a function of the context provided to the model. Prompt Engineering techniques, such as Chain-of-Thought (CoT) [56], enable models to decompose a complex vulnerability, like a multi-stage memory leak or a race condition, into manageable logical steps. Rather than a black-box prediction, CoT encourages the model to generate an internal rationale before synthesizing the final patch, which significantly reduces the likelihood of hallucinating insecure code. However, the Found, but Not Fixed gap often exists because security repairs are rarely correct on the first attempt. Our pipeline moves beyond static, zero-shot prompting by implementing an iterative feedback loop. In this paradigm, the model is treated as an agent within an environment where it receives external scores from code analysis tools. If the score of a generated patch is below a certain threshold, the error logs are fed back into the model. This mimics the Think Step-by-Step [57] methodology but extends it across multiple generations, allowing the LLM to self-reflect and improve its output. This iterative reasoning allows our approach to handle real-world CVEs that possess semantic complexities far beyond the reach of standard one-shot generators.

13 OpenAI API Pricing, OpenAI, 2026

3

GPT Gemini Llama

Figure 4: A visualization of how the LLM4CVE pipeline can automatically fix common software vulnerabilities

• Guided Prompting: Provides the model with the specific CVE/CWE identifiers, technical descriptions of the flaw, and prescriptive instructions for repair. This mimics a scenario where a developer uses a documented vulnerability report to guide their fix.

3. Methodology The core contribution of our work is a generalized, closedloop framework for transforming vulnerability diagnostics into functional code. Our approach, realized through the LLM4CVE pipeline, treats APR as an iterative refinement problem rather than a one-shot predictive task. The architectural design of the pipeline, illustrated in Figure 4, centers on an autonomous feedback loop between semantic code analysis and LLM-driven synthesis.

• Unguided Prompting: Instructs the model to repair the code without providing external vulnerability details. This tests the model’s inherent ability to zero-in on flaws through code reasoning alone.

3.1. Vulnerability Selection & Dataset Composition To evaluate the pipeline’s robustness against diverse failure modes, we select eight of the most critical Common Weakness Enumerations (CWEs) identified by MITRE. These classes represent the primary drivers of modern software exploitation, ranging from memory corruption to improper input handling. Table 1 provides an overview of the selected CWEs and their prevalence within our dataset, which is derived from real-world CVE reports. Section 4.1 further details the automated filtration and pre-processing steps required to ingest these vulnerabilities into the repair pipeline.

To ensure the output is machine-consumable, we mandate the use of code delimiters and strictly instruct the model to produce compilable code with minimal semantic drift. This minimal change constraint is vital for maintaining the original functionality of the software. 3.3. Semantic Code Analysis via CodeBLEU Patching the vulnerable code is mostly localized within a few lines making the fixed code semantically similar to the vulnerable one. We use CodeBLEU [58] as a primary metric to measure such similarity. Unlike standard BLEU scores used in natural language, CodeBLEU incorporates Abstract Syntax Trees (ASTs) and Dataflow Graphs (DFGs) to assess whether the logical structure of the repaired code aligns with groundtruth patches. This encourages the functionality of the LLM’s output code to align with that of the vulnerable one.

Table 1: An overview of selected CWEs for the LLM4CVE pipeline Language

C

Python

CWE

Description

CWE-125 CWE-119 CWE-20 CWE-787 CWE-476 CWE-190 CWE-120 CWE-416 CWE-79 CWE-20 CWE-918 CWE-89 CWE-193 CWE-22 CWE-352 CWE-200 CWE-601 CWE-94

Out-of-bounds Read Improper Buffer Access Improper Input Validation Out-of-bounds Write NULL Pointer Dereference Integer Overflow or Wraparound Classic Buffer Overflow Use After Free Cross-site Scripting Improper Input Validation Server-Side Request Forgery SQL Injection Off-by-one Error Path Traversal Cross-Site Request Forgery Exposure of Sensitive Information Open Redirect Code injection

MITRE Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link Link

Count 452 363 289 179 176 156 121 120 548 499 308 294 228 199 191 175 147 141

3.4. The Iterative Repair Paradigm The cornerstone of our methodology is the iterative feedback loop, which allows the pipeline to self-correct and refine its patches. Single one-shot generation prompts an LLM to fix the vulnerable code V and uses the output as the fixed code patch F̂. Rather than accepting the LLM output directly, our system runs multiple iterative loops. In loop i, it evaluates the similarity score CodeBLEU(F̂i−1 , V) between the input code and the previous output . If the score is below 0.75, an error message is appended to the feedback prompt instructing the LLM to regenerate a fixed code patch F̂i and make it more aligned with the original vulnerable code V functionality. In this stage, the LLM is provided with the previous attempt F̂i−1 and the associated error feedback within the same context window. This agentic behavior allows the model to analyze why its previous patch failed and adjust its strategy, bridging the gap through active trial-and-error. The output F̂i that achieves the

3.2. Guided vs. Unguided Prompt Engineering A critical question in LLM-based repair is how much context is required to move from a diagnosis to a fix. We employ two distinct prompting strategies: guided one-shot and unguided zero-shot prompts. 4

highest similarity score CodeBLEU(F̂i , V) is selected as the final candidate for human-verified evaluation. We cap this process at one extra iteration, thus giving the LLM a total of two iterations to generate the patched code. While having more iterations is possible, we limit it to two to ensure that the whole prompt with the feedback fit in the context window of all of the LLMs tested.

3. Context Constraint Management: To accommodate the context window limitations of modern LLMs, we prune the dataset to remove any code pairs where either snippet exceeds a 500-token threshold. This ensures that the model can ingest the entire vulnerable function and its associated prompt without performance degradation. Following this rigorous filtration, our final curated dataset comprises eight distinct CWE classes, as detailed in Table 1. Each class contains at least 100 candidate pairs. This corpus allows us to move beyond easy examples and test the iterative pipeline against a broad spectrum of real-world logic flaws and memory corruption vulnerabilities.

3.5. Real-World Evaluation Challenges Unlike APR research conducted on synthetic datasets, our evaluation targets real-world codebases where functions are often deeply nested and rely on external dependencies. This makes traditional static analysis and unit testing infeasible for fragmented snippets. Consequently, we focus on:

4.2. Large Language Model Selection To rigorously evaluate the efficacy of our iterative repair paradigm, we select a cross-section of frontier models representing both closed-source proprietary systems and stateof-the-art open-source architectures. Specifically, we employ GPT-3.5-Turbo, GPT-4o, GPT-5.1, Gemini 3 flash, Llama 3 8B, and Llama 3 70B. This selected set of LLMs allows us to investigate the performance gradient across different parameter scales and training philosophies. The inclusion of fine-tuned Llama 3 family is particularly critical for our research goal of bridging the code repair gap through specialization. Their openweights nature permits the application of LoRA fine-tuning (as detailed in Section 4.3), enabling us to adapt the models to the specific semantic nuances of C-language security patches. In contrast, the GPT and Gemini models provide a high-reasoning baseline for zero-shot and one-shot capabilities within the iterative loop making them easily applicable to fixing vulnerabilities in both C and Python programming languages. A primary consideration in our LLM selection process was the maximum context window of each model. Our iterative pipeline relies on the model’s ability to retain the original vulnerable code, the previous failed attempt, and the associated feedback tokens within a single context session. As shown in Table 2, all selected models provide a sufficiently large window to accommodate our 500-token function limit alongside iterative instructions. While GPT-4o, GPT-5.1 and Gemini 3 flash are inherently multimodal, our framework exclusively leverages their text-based reasoning to maintain parity with the other code-centric models.

1. Semantic Fidelity: Comparing candidate patches to historical ground-truth fixes using CodeBLEU. 2. Syntactic Viability: Performing end-to-end compilation checks on synthesized functions. 3. Code Repair Efficacy: Evaluating whether the patch effectively closes the specific security window, even if the implementation differs slightly from the developer’s original commit. 4. Experimental Setup In this section, we discuss the design of our experimental apparatus and provide details on the pre-processing, testing, and evaluation schemes of our work. The experiments are conducted using multiple compute nodes equipped with one Nvidia A100 (80GB), 48 CPU cores and 256GB of system memory. 4.1. Datasets Preparation The foundation of our evaluation is the C code examples in CVEFixes [59] dataset, and the Python code ones in MoreFixes [60]. These comprehensive datasets contain metadata, commit histories, and CWE classifications. While these repositories provide a vast repository of security flaws, they are not inherently structured as a set of labeled, function-level repair pairs. To address our research goal of autonomous repair, we developed a specialized preprocessing pipeline to extract highfidelity before-and-after code snippets. Our curation process follows a multi-stage filtration strategy to ensure the quality and viability of the candidate patches:

Table 2: Context lengths and parameter counts of selected LLMs.

1. CWE Filtering: We first isolate all function-level changes organized by their unique CVE identifiers. To ensure our evaluation focuses on well-defined vulnerability classes, we exclude entries with ambiguous or missing metadata, such as NVD-CWE-noinfo and NVD-CWE-other. 2. Structural Pair Matching: We specifically target CVEs that exhibit a one-to-one repair pattern. This involves identifying unique pairs where a single vulnerable before snippet is directly corrected by a single non-vulnerable after snippet within the same function scope. This structure provides the unambiguous ground truth necessary for system evaluation.

Model GPT-3.5-Turbo GPT-4o GPT-5.1 Gemini 3 flash Llama 3 8B Llama 3 70B

Context Length (Tokens) 16,385 128,000 400,000 1,000,000 8,192 8,192

4.3. LLM Augmentation via Low-Rank Adaptation To bridge the gap between general-purpose code reasoning and the specialized logic required for security remediation, we 5

Table 3: Models & pipeline configurations used in our study.

perform supervised fine-tuning on the Llama 3 70B model using LoRA. LoRA operates on the principle that weight updates during domain adaptation possess a low intrinsic rank allowing us to freeze the pre-trained weights and inject trainable rank decomposition matrices into the model layers as mathematically expressed in Eq. 1. This approach allows for high-fidelity adaptation to the semantic patterns of C-language security patches while reducing the trainable parameter count by a factor of up to 10,000, thereby preventing catastrophic forgetting of the model’s reasoning abilities. We fine-tune Llama 3 70B using LoRA implemented via the Unsloth14 library. To reduce GPU memory requirements, the model is loaded in 4-bit precision (QLoRA). LoRA adapters are applied to all attention and feed-forward projection layers with a rank of r = 16 and a scaling coefficient of α = 16. The model is trained for 60 steps using the AdamW optimizer with a learning rate of 2 × 10−4 and a batch size of 8. We utilize a 90/10 train/test split from our curated dataset of C-code (See Sec. 4.1). This ratio is chosen to maximize the training corpus for the complex, low-frequency patterns found in real-world broken/fixed pairs while reserving a statistically significant subset for unbiased evaluation. During training, the model learns to map specific vulnerability signatures, such as unchecked buffer indices, to their respective human-verified corrections. The final model is then integrated into the iterative pipeline to rectify unseen vulnerable code samples under varying levels of guidance.

Model GPT-3.5-Turbo GPT-4o GPT-5.1 Gemini 3 flash Llama 3 8B Llama 3 70B

Iterative Pipeline Configuration Unguided Guided Guided + Feedback ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓

a recursive generation loop to synthesize high-fidelity security patches. To maintain computational efficiency and prevent the degradation of reasoning capabilities through catastrophic forgetting, the iterative process is constrained to two cycles. For each iteration, the vulnerable code snippet and associated prompts are limited to approximately 500 tokens to ensure the entire context, including previous candidate patches and feedback tokens, remains within the model’s operational window. Upon generating an output, the pipeline extracts the candidate code and assesses its semantic integrity using the change in CodeBLEU scores. A significant divergence in this score serves as a heuristic for potential errors, which is then used to inform the model’s subsequent prompt. Crucially, to maintain the realism of the evaluation, the pipeline never utilizes the groundtruth fix for feedback, as such data would be unavailable in a real-world deployment scenario. The overall flow of this iterative step is illustrated in Figure 4.

4.4. Iterative Pipeline Configurations To isolate the factors that contribute to successful code and concretely address the repair gap, we evaluate our models across three distinct pipeline configurations:

4.6. Candidate Patch Extraction To automate the transition from model output to deployable code, we implement a robust extraction layer. While LLMs are instructed to use specific delimiters, their raw output often includes natural language commentary or unformatted text. Our results show that approximately 95% of responses are wellformed and easily parsed. For the remaining 5% of edge cases, we employ specialized regex-based logic to isolate the candidate patch from surrounding noise. In rare instances where no valid code is produced (less than 1% of samples), the pipeline records a failure to generate a candidate, ensuring the integrity of the downstream evaluation.

1. Unguided (Zero-Shot): The LLM model is prompted to repair code using only its pre-trained knowledge (no finetuning), without external CVE/CWE context. 2. Guided (One-Shot): The prompt is augmented with metadata, including CVE identifiers and CWE descriptions, to simulate a developer following a diagnostic report. 3. Guided + Feedback (Iterative): This represents our full agentic workflow. The model receives iterative feedback from compiler logs and CodeBLEU metric analysis, allowing it to refine its patch over multiple generations in a guided fashion. For the Llama 3 70B model, this configuration also incorporates the specialized LoRA adapter.

4.7. Evaluation Metrics To validate whether our generalized pipeline successfully bridges the code repair gap, we evaluate our approach using a pass@k scheme with k = 1, employing four primary metrics:

Our evaluation suite includes six tested models, resulting in 18 unique model/configuration combinations. A comprehensive taxonomy of these configurations is provided in Table 3.

1. CodeBLEU Semantic Similarity: This metric quantifies the alignment between LLM-generated fixes and groundtruth code. By analyzing Data-Flow Graphs and Abstract Syntax Trees, CodeBLEU ensures the patch is logically sound rather than just lexically similar. 2. End-to-End Compilation: We rigorously test the patches by applying them to real-world codebases and executing full project builds. This validates the syntactic correctness and ’compilability’ of the iterative output.

4.5. Automated Feedback Pipeline The iterative mechanism is the primary engine for bridging the repair gap by transforming a static diagnosis into a verified fix. The pipeline employs a guided with feedback architecture, which integrates sophisticated prompt engineering with 14 Easily run & train models locally, Unsloth, 2026

6

3. Engineering Effort Analysis: Finally, we evaluate the reduction in manual labor by comparing setup times and required domain expertise against traditional manual code repair workflows.

5. Results 5.1. Semantic Fidelity via CodeBLEU Scores In this study, we evaluate the semantic proximity of our synthesized repairs to the ground-truth patches using the CodeBLEU metric. Our methodology employs a CodeBLEU scoring system that quantifies similarity on a normalized scale between 0 and 1.0. This composite score accounts for lexical n-gram overlaps as well as structural alignment across Abstract Syntax Trees (ASTs) and Data-Flow Graphs (DFGs). It is important to note that security vulnerabilities (CVEs) often permit various functionally equivalent resolutions. Thus, a CodeBLEU score below unity does not necessarily signify an unsuccessful or insecure repair. Instead, we interpret CodeBLEU as a proxy for the system’s capacity to replicate the original developer’s intent. To validate these semantic scores, we supplement our analysis with rigorous end-to-end compilation checks and functional testing, as discussed in Section 5.2. The performance of our three experimental setups: unguided (zero-shot), guided (one-shot), and guided+feedback, is illustrated in Figure 6. The semantic similarity score for the fixed Python code vulnerabilities shows improvement with feedback, where Gemini 3 flash showed the biggest improvement. On the other hand, for the C language our findings indicate a substantial performance gain when utilizing the iterative feedback mechanism, with Gemini 3 flash performing the best out of the non-fine-tuned models. Additionally, the fine-tuned models demonstrated the largest improvements with the guided+feedback configuration. Specifically, the Llama 3 70B model exhibited a 20% improvement in CodeBLEU scores when transitioning from a one-shot approach to the guided+feedback configuration, outperforming the GPT models and performing on par with Gemini 3 flash as shown in Figure 6b. This trend highlights the value of iterative refinement in narrowing the gap between automated patch generation and human-authored repairs.

4.8. Comparison with SOTA pipelines To further assess the performance of our iterative pipeline, we also compare it to VulRepair [20] that fine-tunes the sequence-to-sequence model CodeT5 [61] to patch code vulnerabilities in the C-language. The VulRepair pipeline preprocessing strips away all code styling indentations and adds special markers to highlight the start and end of vulnerable parts in the input code. Then, the model predicts the fixed version of each vulnerable part with special delimiter markers between them. To compare VulRepair with our pipeline, we develop a script to reconstruct the complete fixed code and remove any leftover markers. In this experiment, the maximum allowed context length is limited to only 450 instead of 500. This is done to leave extra room for any extra markers added by the VulRepair pre-processing without surpassing its context window.

5.2. End-to-End Compilation To move beyond semantic scoring and evaluate the pipeline’s effectiveness in a production-grade environment, we conduct an end-to-end compilation test using real-world software. We initialize our framework with a known vulnerable function from the iperf3 network utility, a widely used tool for TCP, UDP, and SCTP bandwidth measurement. The vulnerability, designated as CVE-2016-4303 (associated with CWE-120), resides within the cJSON_DeleteItemFromArray function of the integrated cJSON library. Once the iterative pipeline generates a candidate patch, we assess its validity through a rigorous experimental harness. This harness simulates a malicious actor attempting to exploit the buffer overflow by providing a malformed cJSON object with invalid lengths. We compile two versions of the iperf3 binary: one containing the original vulnerable code and one integrated with the LLM-generated patch. Upon execution, the unpatched binary suffered an immediate crash when processing the malformed object, confirming the exploit’s viability. In contrast, the binary patched by our

Figure 5: VulRepair vulnerable and fixed code block count mismatch ratio.

However, the number of modified snippets produced by VulRepair usually did not match the number of vulnerable snippets in the original vulnerable code as shown in Figure 5. All cases where the number of modified snippets are less than that of the vulnerable snippets are reported as failures. Conversely, if the opposite is the case, the extra modified snippets are ignored. For a fair comparison, our pipeline is also provided the marked version of the code. Additionally, clang-format 15 is used to normalize the styling of both the vulnerable and fixed codes of both pipelines to rule-out code styling differences as a factor affecting the semantic similarity scores.

15 Clang 23.0.0 Documentation, Clang, 2026

7

(a) Python code results

(b) C code results

Figure 6: CodeBLEU scores for all iterative pipeline configurations and LLMs. The shaded parts highlight the improvement relative to the previous configuration

trained, these models can produce candidate patches in roughly 10 minutes.

pipeline successfully identified and rejected the malicious input, thereby preventing the exploitation. 5.3. Quantifying Engineering Effort & Repair Latency

As summarized in Table 4, the automated approach effectively collapses the window of exposure for vulnerable code. By combining setup and execution times into a single operational metric, we demonstrate that an iterative LLM-driven framework can substantially reduce remediation latency compared to manual workflows, suggesting significant potential value for maintaining the security of modern, high-velocity software environments.

A comprehensive evaluation of any software security solution must look beyond accuracy and consider its operational efficiency and real-world scalability. We analyze the Engineering Effort required to secure a codebase by comparing three distinct paradigms: (1) Traditional Human Remediation, (2) Proprietary GPT-based Pipelines, and (3) Open-source LLM Pipelines augmented with LoRA. The primary barrier to rapid patching is the reliance on skilled human labor. Trained engineers represent the highest cost and the slowest turnaround, as the remediation process requires a deep understanding of the specific codebase and cybersecurity principles. This challenge is significantly exacerbated in legacy systems, where original authors are often unavailable and documentation is missing. Industry studies estimate that the ’time-to-fix’ for a single security vulnerability typically ranges from several days [62] to a full month [59]. For our comparison, we utilize a conservative estimate of 28 days for manual remediation to reflect the complexity of the CVEs in our dataset. In contrast, our iterative pipeline demonstrates a paradigm shift in remediation latency:

Table 4: Engineer-hours for various vulnerability patching methods.

Vulnerability Patching Technique Human Intervention Open-Source LLMs+LoRAs GPT LLMs

Setup Time N/A 24 hours 1 hour

Execution Time 28 days 10 minutes 5 minutes

5.4. Comparison with SOTA pipelines To evaluate our iterative pipeline against existing SOTA pipelines, we compare it to VulRepair: a sequence-to-sequence model fine-tuned to fix C-code vulnerabilities. As VulRepair requires special tags marking the vulnerable section, both pipelines are evaluated using the marked vulnerable code. Although over 62% of VulRepair pipeline results have extra hallucinated modifications which were not added to the final reconstructed patched code (See Sec. 4.8), the iterative pipeline still outperforms it across all models as shown in Table 5. This demonstrates the robustness of the iterative pipeline in the vulnerability patching task.

• Proprietary Pipelines: Like GPT and Gemini, they offer the lowest barrier to entry. Leveraging OpenAI’s API allows for near-instantaneous setup (approximately 1 hour) and rapid execution (5 minutes per patch) without requiring localized high-performance compute resources. • Open-source LLMs + LoRA: Prioritize data sovereignty and long-term security. While they require a more substantial initial investment in setup time (24 hours for dataset curation and LoRA fine-tuning), they enable local, private execution that is independent of external APIs. Once

6. Discussion The generalized iterative LLM4CVE pipeline presented in this work significantly lowers the barrier to entry for repairing critical security vulnerabilities. By automating the transi8

Table 5: Semantic similarity score with marked C code.

Pipeline VulRepair Iterative

Model CodeT5 GPT-3.5-Turbo GPT-4o GPT-5.1 Gemini 3 flash

CodeBLEU score 0.68 0.74 0.77 0.78 0.82

1

2

3 4

unsigned char * s n m p _ b e r _ d e c o d e _ t y p e ( unsigned char * buff , uint32_t * buff_len , uint8_t * type ) { if ( buff == NULL || buff_len == NULL || type == NULL || * buff_len == 0) { return NULL ; }

5

* type = * buff ++; (* buff_len ) - -;

6 7 8

return buff ;

9

tion from diagnosis to cure, the framework demands considerably less engineering effort, particularly for projects with diminishing knowledge bases and few active maintainers. Furthermore, the speed and efficiency of the pipeline enable nearinstantaneous repair, drastically reducing the window of exposure between bug discovery and patch deployment.

10

Listing 2: A candidate patch generated by GPT-4o

Notably, while the original code attempted to validate only the length of the buffer, it did so by performing a blind de-reference of buff_len before ensuring the pointer itself was valid, a common flaw that leads to immediate segmentation faults. The iterative pipeline, through its refinement loop, successfully identified this logical oversight. The resulting patch introduces comprehensive NULL-pointer checks for buff, buff_len, and type prior to any de-reference or arithmetic operations. This level of defensive programming demonstrates that the iterative process does not merely mimic humanauthored patches but actively reasons about the underlying memory safety of the C language to provide a non-destructive, robust cure. This example shows the pipeline’s ability to bridge the remediation gap by moving beyond simple keyword replacement toward semantic repair and rectification.

6.1. Security Impact Speeding up the vulnerability patching process has profound implications for system resilience. Our framework is especially relevant to legacy codebases, where the scarcity of domainspecific experts often leads to dangerously long turnaround times. By reducing the dependence on human intervention, the pipeline aids in fixing the critical flaws at a much faster rate, thereby increasing the overall safety of the software ecosystem. These benefits are quantitatively demonstrated in Table 4, which shows the drastic reduction in repair latency compared to manual efforts.

6.2.2. CWE-119: Heap Over-Read The Curl_urldecode function from libcurl is presented in listing 3, which is vulnerable to a heap over-read triggered by a percent sign appearing as the final character of a URL-encoded string (CVE-2013-2174). Listing 4 displays the candidate remediation synthesised by GPT-4o through the full LLM4CVE guided+feedback pipeline.

6.2. Qualitative Patch Assessment A comparative analysis between the original vulnerable function and the candidate patch generated by our pipeline reveals the depth of the model’s security reasoning. To demonstrate this in practice, we provide three case studies that showcase the capabilities of the iterative pipeline across different CWEs. 6.2.1. CWE-125: Out-of-Bounds Read Listing 1 illustrates the snmp_ber_decode_type function, which is susceptible to an out-of-bounds read and potential crash due to inadequate input validation CVE-2020-12141. Listing 2 displays the remediation synthesized by GPT-4o using the full LLM4CVE iterative framework. unsigned char * s n m p _ b e r _ d e c o d e _ t y p e ( unsigned char * buff , uint32_t * buff_len , uint8_t * type ) 2 { 3 if (* buff_len == 0) { 4 return NULL ; 5 } 1

}

CURLcode Curl_u rldeco de ( struct SessionHandle * data , const char * string , size_t length , char ** ostring , size_t * olen , bool reject_ctrl ) 2 { 3 size_t alloc = ( length ? length : strlen ( string ) ) +1; 4 /* ... */ 5 while ( - - alloc > 0) { 6 in = * string ; 7 if (( ’% ’ == in ) && ISXDIGIT ( string [1]) && ISXDIGIT ( string [2]) ) { 8 /* ...... */ 9 string +=2; alloc -=2; 10 } 11 /* ... */ 12 } 13 } 1

Listing 3: The original vulnerable Curl_urldecode function

6

* type = * buff ++; (* buff_len ) - -;

7 8 9

return buff ;

10 11

} Listing 1: The original vulnerable function

CURLcode Curl_u rldeco de ( struct SessionHandle * data , const char * string , size_t length , char ** ostring , size_t * olen , bool reject_ctrl ) 2 { 3 size_t alloc = ( length ? length : strlen ( string ) ) +1; 4 /* ... */ 1

9

while ( - - alloc > 0) { in = * string ; if (( ’% ’ == in ) && ( alloc > 2) && ISXDIGIT ( string [1]) && ISXDIGIT ( string [2]) ) { /* ...... */ string +=2; alloc -=2; } else if ( ’% ’ == in ) { free ( ns ) ; return C U R L E _ U R L _ M A L F O R M A T ; } /* ... */ }

5 6 7

8 9 10 11 12 13 14 15 16 17

} Listing 4: A candidate patch generated by GPT-4o (CVE-2013-2174)

The vulnerability resides in the boundary condition of the percent-decoding loop in lines five to ten. As alloc decrements with each iteration, it reaches one when the final byte of the input buffer is being processed. Should that byte be ’%’, the original code unconditionally evaluates ISXDIGIT(string[1]) and ISXDIGIT(string[2]), reading one and two bytes beyond the allocated region. The ground-truth fix introduced by maintainers inserts a single boundary check condition, (alloc > 2), ensuring that the reads are only attempted when at least two bytes remain in the buffer. LLM4CVE pipeline independently arrives at this identical guard, confirming that the model has correctly reasoned about the relationship between the loop counter alloc and the lookahead indices string[1] and string[2]. Moreover, the generated patch adds an additional layer of defense not present in the ground-truth: at lines 11 through 14 of Listing 4, GPT-4o adds an else if branch that explicitly rejects a bare ’%’ with CURLE_URL_MALFORMAT, preventing the character from being forwarded to the caller as literal data. This augmentation, absent from the official commit, demonstrates that the iterative pipeline does not merely replicate the minimal human patch but can synthesize complementary defensive measures through its self-refinement loop.

14

} Listing 5: The original vulnerable add_password function

static void add_password ( AUTH_HDR * request , unsigned char type , CONST char * password , char * secret ) 2 { 3 int length = strlen ( password ) ; 4 unsigned char hashed [256 + AUTH_PASS_LEN ]; 5 if ( length > MAXPASS ) { 6 length = MAXPASS ; 7 } 8 /* ... */ 9 /* round length up to nearest 16 - byte block */ 10 /* ... */ 11 memset ( hashed , 0 , length ) ; 12 memcpy ( hashed , password , length ) ; 13 /* ... */ 14 } 1

Listing 6: A candidate patch generated by GPT-4o (CVE-2015-9542)

While the function correctly constrains length to MAXPASS, the subsequent memcpy in line 12 ignores this sanitized value entirely, instead passing the raw length of the caller supplied password strlen(password). An attacker submitting a password exceeding length can therefore overflow hashed, corrupting the stack frame, potentially manipulating saved registers’ states or even the function return address. The LLM4CVE candidate patch, generated under the guided+feedback configuration, produces the ground truth solution, replacing strlen(password) with the bounded variable length. This repair is identical to the ground-truth CVEfixes commit. The precision of this result is significant: reaching it requires not merely recognising the class of vulnerability (unbounded copy into a fixed buffer), but identifying that the correct bound had already been computed earlier in the same scope and was available under the name length. 6.3. The Performance Gradient: GPT/Gemini vs. Llama

6.2.3. CWE-787: Stack Buffer Overflow The vulnerable and LLM4CVE generated patched versions of the add_password function from the pam_radius PAM authentication module are shown in Listing 5 and Listing 6 respectively. This function is susceptible to a stack-based buffer overflow CVE-2015-9542.

A central aim of this study is to investigate the performance delta between high-capacity proprietary models and optimized open-source architectures. Throughout the experimental phase, the Llama 3 70B model demonstrated consistent parity with the other evaluated LLMs, most notably when deployed within the integrated Guided + Feedback configuration of the LLM4CVE framework. The substantial advancements in generative efficacy were largely a byproduct of our pipeline’s iterative structure, which we attribute to the efficacy of domain-specific adaptation on open-source weights. While proprietary systems like GPT5.1 enable significant general-purpose reasoning capabilities, their black-box architecture constrains the implementation of the granular LoRA strategies described in Section 3. Consequently, our results suggest that for specialized vulnerability fixing tasks, medium-scale, adaptable open-source models such as Llama 3 70B offer a more resilient framework than the reliance on general-purpose proprietary APIs.

static void add_password ( AUTH_HDR * request , unsigned char type , CONST char * password , char * secret ) 2 { 3 int length = strlen ( password ) ; 4 unsigned char hashed [256 + AUTH_PASS_LEN ]; 5 if ( length > MAXPASS ) { 6 length = MAXPASS ; 7 } 8 /* ... */ 9 /* round length up to nearest 16 - byte block */ 10 /* ... */ 11 memset ( hashed , 0 , length ) ; 12 memcpy ( hashed , password , strlen ( password ) ) ; 13 /* ... */ 1

10

7. Limitations and Future Work

the pipeline. By checking patches against formal behavioral specifications, the system can provide mathematical proofs of security that purely probabilistic models cannot capture.

While LLM4CVE demonstrates a significant leap in bridging the remediation gap, several technical and structural limitations remain that define the boundaries of current LLM-based program repair. Addressing these constraints is necessary for the evolution of fully autonomous security agents capable of handling the complexities of modern software engineering.

• Multi-Agent Orchestration: Next works on LLM4CVE can explore the use of multi-agent ecosystems where specialized security reviewer agents critique the patches generated by repair agents. This adversarial collaboration mimics the human peer-review process, potentially raising the reliability of automated software code repair to nearperfect standards.

7.1. Architectural and Contextual Constraints One primary limitation of the current pipeline is its focus on intra-procedure repair. While LLM4CVE excels at fixing vulnerabilities contained within a single function, such as buffer overflows or NULL-pointer dereferences, many real-world security flaws are interprocedural in nature. Vulnerabilities like race conditions, complex logic errors, or broken authentication flows often require coordinated changes across multiple files or modules. Current context window constraints and the quadratic complexity of standard attention mechanisms limit the model’s ability to maintain a global view of large-scale repositories. This can potentially lead to fragmented patches that fix a local symptom while ignoring the systemic cause or inadvertently breaking dependencies in distant parts of the codebase.

• Cost-Performance Optimization: Future work can investigate the empirical trade-offs between execution costs and repair performance. Specifically, varying the number of iterations within the LLM4CVE pipeline will help determine the point of diminishing returns, optimizing the balance between computational overhead and patch success rates. By addressing these limitations, LLM4CVE will evolve from a specialized assistant into a true coding collaborator and partner, capable of securing the software supply chain at a scale and speed unattainable by human experts alone.

7.2. Semantic Hallucinations and Symbolic Guardrails Despite achieving a high quality score, LLMs remain susceptible to semantic hallucinations: the generation of code that appears syntactically correct but is logically insecure or nonfunctional. In security contexts, this may manifest as the introduction of secondary vulnerabilities while fixing an existing one. While our evaluation did not explicitly quantify the rate of secondary vulnerability introduction, this remains a recognized risk in security-focused code generation. Current research suggests that high-autonomy agentic workflows can occasionally introduce subtle logic flaws if not constrained by symbolic guardrails. Our reliance on CodeBLEU, while effective for semantic similarity, does not provide the mathematical guarantees required for mission-critical software.

8. Conclusion The persistence of the Found, but Not Fixed phenomenon in software security underlines a critical bottleneck in modern vulnerability management. In this work, we introduced LLM4CVE, a generalized, iterative pipeline designed to autonomously remediate critical software vulnerabilities with minimal human intervention. By bridging the gap between conventional bug reporting and advanced LLM reasoning, our framework transforms static diagnostic data from CVE and CWE repositories into dynamic code patching agents. This transition represents a paradigm shift in how we handle legacy software security, moving from reactive documentation to proactive, autonomous cure. Our findings offer several significant insights for the software security community, most notably the power of iteration over the standard one-shot generation paradigm. Our results demonstrate that the introduction of a closed-loop feedback mechanism, informed by CodeBLEU semantic analysis and compiler logs, yielded a 20% improvement in patch fidelity. This suggests that future APR tools must prioritize agentic, recursive reasoning to handle complex security logic effectively. Furthermore, we observed that specialized, open-source models like Llama 3 70B, when augmented with LoRA, can match the performance of much larger proprietary black-box models with the closed-loop feedback. This highlights a viable path for organizations to deploy on-site, privacy-preserving remediation tools without sacrificing accuracy or technical depth. The framework effectively collapses the window of exposure for code vulnerabilities, providing a scalable method for maintaining system integrity in high-velocity software environments. As we look toward the future of expert-free program

7.3. Future Research Directions To overcome these barriers, future iterations of LLM4CVE should pivot toward an Agentic and Symbolic Hybrid architecture. We identify four key pillars for the continued development of this framework: • Dynamic Trace Integration: Moving beyond static analysis, future versions of LLM4CVE can integrate execution-level dynamic information, such as variable states and call stacks, into the feedback loop. This would allow the model to simulate runtime behavior and significantly reduce the patch search space by identifying precisely which logical branches lead to a crash. • Formal Verification Oracles: To eliminate the risk of hallucination and secondary vulnerability introduction, future efforts on LLM4CVE can incorporate formal verification methods, such as SMT solvers, as truth oracles within 11

repair, extending this pipeline to multi-file structural changes and integrating dynamic execution traces will be essential next steps in the evolution of fully autonomous vulnerability remediation.

ability (WorldS4), 2020, pp. 449–453. doi:10.1109/ WorldS450073.2020.9210375. [9] T. Kim, et al., PASAN: Detecting peripheral access concurrency bugs within Bare-Metal embedded applications, in: 30th USENIX Security Symposium (USENIX Security 21), USENIX Association, 2021, pp. 249–266. URL https://www.usenix.org/conference/ usenixsecurity21/presentation/kim

References [1] D. Votipka, et al., Understanding security mistakes developers make: Qualitative analysis from build it, break it, fix it, in: 29th USENIX Security Symposium (USENIX Security 20), USENIX Association, 2020, pp. 109–126. URL https://www.usenix.org/conference/ usenixsecurity20/presentation/ votipka-understanding

[10] L. Chen, et al., Sharing more and checking less: Leveraging common input keywords to detect bugs in embedded systems, in: 30th USENIX Security Symposium (USENIX Security 21), USENIX Association, 2021, pp. 303–319. URL https://www.usenix.org/conference/ usenixsecurity21/presentation/chen-libo

[2] Y.-Y. Chang, et al., Trend analysis of the cve for software vulnerability management, in: 2011 IEEE Third International Conference on Privacy, Security, Risk and Trust and 2011 IEEE Third International Conference on Social Computing, 2011, pp. 1290–1293. doi:10.1109/ PASSAT/SocialCom.2011.184.

[11] D. Davidson, et al., FIE on firmware: Finding vulnerabilities in embedded systems using symbolic execution, in: 22nd USENIX Security Symposium (USENIX Security 13), USENIX Association, Washington, D.C., 2013, pp. 463–478. URL https://www.usenix.org/conference/ usenixsecurity13/technical-sessions/paper/ davidson

[3] A. E. B. On, The law and economics of bug bounties (Aug. 2018). [4] N. Huaman, et al., A Large-Scale interview study on information security in and attacks against small and medium-sized enterprises, in: 30th USENIX Security Symposium (USENIX Security 21), USENIX Association, 2021, pp. 1235–1252. URL https://www.usenix.org/conference/ usenixsecurity21/presentation/huaman

[12] M. Antonakakis, et al., Understanding the mirai botnet, in: 26th USENIX Security Symposium (USENIX Security 17), USENIX Association, Vancouver, BC, 2017, pp. 1093–1110. URL https://www.usenix.org/conference/ usenixsecurity17/technical-sessions/ presentation/antonakakis

[5] A. Kogler, et al., Collide+Power: Leaking inaccessible data with software-based power side channels, in: 32nd USENIX Security Symposium (USENIX Security 23), USENIX Association, Anaheim, CA, 2023, pp. 7285– 7302. URL https://www.usenix.org/conference/ usenixsecurity23/presentation/kogler

[13] S. Soltan, et al., BlackIoT: IoT botnet of high wattage devices can disrupt the power grid, in: 27th USENIX Security Symposium (USENIX Security 18), USENIX Association, Baltimore, MD, 2018, pp. 15–32. URL https://www.usenix.org/conference/ usenixsecurity18/presentation/soltan

[6] J. Reardon, et al., 50 ways to leak your data: An exploration of apps’ circumvention of the android permissions system, in: 28th USENIX Security Symposium (USENIX Security 19), USENIX Association, Santa Clara, CA, 2019, pp. 603–620. URL https://www.usenix.org/conference/ usenixsecurity19/presentation/reardon

[14] G. Joshua, et al., A comprehensive study of autonomous vehicle bugs, in: Proceedings of the ACM/IEEE 42nd international conference on software engineering, 2020, pp. 385–396.

[7] Everson, et al., Log4shell: Redefining the Web Attack Surface, in: Proceedings of the 2022 Workshop on Measurements, Attacks, and Defenses for the Web (MADWeb) at NDSS Symposium, 2022. URL https://www.ndss-symposium.org/ ndss-paper/auto-draft-277/

[15] S. Kim, et al., Drivefuzz: Discovering autonomous driving bugs through driving quality-guided fuzzing, in: Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, CCS ’22, Association for Computing Machinery, New York, NY, USA, 2022, p. 1753–1767. doi:10.1145/3548606.3560558. URL https://doi.org/10.1145/3548606.3560558

[8] S. Al-Sarawi, et al., Internet of things market analysis forecasts, 2020–2030, in: 2020 Fourth World Conference on Smart Trends in Systems, Security and Sustain-

[16] S. A. Akhavani, B. Ousat, A. Kharraz, Open source, open threats? investigating security challenges in open-source software, arXiv preprint arXiv:2506.12995 (2025). 12

[17] N. Santiago, J. Mendez, Analysis of common vulnerabilities and exposures to produce security trends, in: Proceedings of the 2022 International Conference on Cyber Security, CSW ’22, Association for Computing Machinery, New York, NY, USA, 2023, p. 16–19. doi: 10.1145/3584714.3584718. URL https://doi.org/10.1145/3584714.3584718

[27] J. Liu, et al., Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation, in: A. Oh, et al. (Eds.), Advances in Neural Information Processing Systems, Vol. 36, Curran Associates, Inc., 2023, pp. 21558–21572. URL https://proceedings.neurips. cc/paper_files/paper/2023/file/ 43e9d647ccd3e4b7b5baab53f0368686-Paper-Conference. pdf

[18] E. Pinconschi, et al., A comparative study of automatic program repair techniques for security vulnerabilities, in: 2021 IEEE 32nd International Symposium on Software Reliability Engineering (ISSRE), 2021, pp. 196– 207. doi:10.1109/ISSRE52982.2021.00031.

[28] B. Rozière, Jothers, Code llama: Open foundation models for code (2023). arXiv:arXiv:2308.12950. [29] H. Liu, et al., Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning, in: S. Koyejo, et al. (Eds.), Advances in Neural Information Processing Systems, Vol. 35, Curran Associates, Inc., 2022, pp. 1950–1965. URL https://proceedings.neurips. cc/paper_files/paper/2022/file/ 0cde695b83bd186c1fd456302888454c-Paper-Conference. pdf

[19] Q. Zhang, et al., Pre-trained model-based automated software vulnerability repair: How far are we?, IEEE Transactions on Dependable and Secure Computing (2023) 1– 18doi:10.1109/TDSC.2023.3308897. [20] M. Fu, et al., Vulrepair: a t5-based automated software vulnerability repair, in: Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2022, Association for Computing Machinery, New York, NY, USA, 2022, p. 935–947. doi: 10.1145/3540250.3549098. URL https://doi.org/10.1145/3540250.3549098

[30] E. J. Hu, et al., LoRA: Low-rank adaptation of large language models, in: International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id= nZeVKeeFYf9

[21] A. Doupé, History and future of automated vulnerability analysis, in: Proceedings of the 24th ACM Symposium on Access Control Models and Technologies, SACMAT ’19, Association for Computing Machinery, New York, NY, USA, 2019, p. 147. doi:10.1145/3322431.3326331. URL https://doi.org/10.1145/3322431.3326331

[31] H. Liu, et al., Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning (2022). [32] H. Xiong, et al., Doctorglm: Fine-tuning your chinese doctor is not a herculean task (2023). arXiv:arXiv: 2304.01097.

[22] M. Fu, et al., Vision transformer inspired automated vulnerability repair, ACM Trans. Softw. Eng. Methodol. 33 (3) (mar 2024). doi:10.1145/3632746. URL https://doi.org/10.1145/3632746

[33] A. Q. Jiang, et al., Mixtral of experts (2024). arXiv: arXiv:2401.04088. [34] Y. Zhou, et al., Large language models are human-level prompt engineers, in: Advances in Neural Information Processing Systems, Curran Associates, Inc., 2022. URL https://openreview.net/forum?id= YdqwNaCLCx

[23] J. Harer, et al., Learning to repair software vulnerabilities with generative adversarial networks, Advances in neural information processing systems 31 (2018). [24] K. Liu, et al., A critical review on the evaluation of automated program repair systems, Journal of Systems and Software 171 (2021) 110817. doi:https: //doi.org/10.1016/j.jss.2020.110817. URL https://www.sciencedirect.com/science/ article/pii/S0164121220302156

[35] H. Strobelt, et al., Interactive and visual prompt engineering for ad-hoc task adaptation with large language models, IEEE transactions on visualization and computer graphics 29 (1) (2022) 1146–1156. [36] P. Denny, et al., Conversing with copilot: Exploring prompt engineering for solving cs1 problems using natural language, in: Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1, 2023, pp. 1136–1142.

[25] M. Motwani, et al., Quality of automated program repair on real-world defects, IEEE Transactions on Software Engineering 48 (2) (2022) 637–661. doi:10.1109/TSE. 2020.2998785. [26] Q. Zhang, et al., A survey of learning-based automated program repair, ACM Trans. Softw. Eng. Methodol. 33 (2) (dec 2023). doi:10.1145/3631974. URL https://doi.org/10.1145/3631974

[37] M. Fakih, et al., Llm4plc: Harnessing large language models for verifiable programming of plcs in industrial control systems, in: Proceedings of the 46th International 13

Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP ’24, Association for Computing Machinery, New York, NY, USA, 2024, p. 192–203. doi:10.1145/3639477.3639743. URL https://doi.org/10.1145/3639477.3639743

[47] C. S. Xia, L. Zhang, Conversational automated program repair, arXiv preprint arXiv:2301.13246 (2023). [48] X. Gao, et al., Beyond tests: Program vulnerability repair via crash constraint extraction, ACM Transactions on Software Engineering and Methodology (TOSEM) 30 (2) (2021) 1–27.

[38] R. Ravi, et al., Llmloop: Improving llm-generated code and tests through automated iterative feedback loops, in: 2025 IEEE International Conference on Software Maintenance and Evolution (ICSME), 2025, pp. 930–934. doi: 10.1109/ICSME64153.2025.00109.

[49] A. Vaswani, et al., Attention is all you need, in: I. Guyon, et al. (Eds.), Advances in Neural Information Processing Systems, Vol. 30, Curran Associates, Inc., 2017. URL https://proceedings.neurips. cc/paper_files/paper/2017/file/ 3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf

[39] A. Madaan, et al., Self-refine: Iterative refinement with self-feedback, in: A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, S. Levine (Eds.), Advances in [50] F. Shi, et al., Large language models can be easily disNeural Information Processing Systems, Vol. 36, Curran tracted by irrelevant context, in: International Conference Associates, Inc., 2023, pp. 46534–46594. on Machine Learning, PMLR, 2023, pp. 31210–31227. URL https://proceedings.neurips. cc/paper_files/paper/2023/file/ [51] M. Zaheer, et al., Big bird: Transformers for longer se91edff07232fb1b55a505a9e9f6c0ff3-Paper-Conference. quences, Advances in neural information processing syspdf tems 33 (2020) 17283–17297. [40] A. D. Householder, et al., Historical analysis of exploit [52] J. Wei, et al., Emergent abilities of large language models, availability timelines, in: 13th USENIX Workshop on Transactions on Machine Learning ResearchSurvey Cyber Security Experimentation and Test (CSET 20), Certification (2022). USENIX Association, 2020. URL https://openreview.net/forum?id= URL https://www.usenix.org/conference/ yzkSU5zdwD cset20/presentation/householder

[53] E. Ben Zaken, et al., BitFit: Simple parameter-efficient fine-tuning for transformer-based masked languagemodels, in: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Association for Computational Linguistics, Dublin, Ireland, 2022, pp. 1–9. doi:10.18653/v1/2022.acl-short.1. URL https://aclanthology.org/2022. acl-short.1/

[41] A. Avizienis, et al., Basic concepts and taxonomy of dependable and secure computing, IEEE Transactions on Dependable and Secure Computing 1 (1) (2004) 11–33. doi:10.1109/TDSC.2004.2. [42] Y. Zheng, X. Zhang, Path sensitive static analysis of web applications for remote code execution vulnerability detection, in: 2013 35th International Conference on Software Engineering (ICSE), IEEE, 2013, pp. 652–661. [43] Z. Li, et al., Vuldeepecker: A deep learning-based system for vulnerability detection, in: 25th Annual Network and Distributed System Security Symposium, NDSS 2018, San Diego, California, USA, February 18-21, 2018, The Internet Society, 2018. URL https://www.ndss-symposium.org/ wp-content/uploads/2018/02/ndss2018_03A-2_ Li_paper.pdf

[54] H. Liu, et al., Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning, Advances in Neural Information Processing Systems 35 (2022) 1950– 1965.

[44] S. Chakraborty, et al., Deep learning based vulnerability detection: Are we there yet?, IEEE Transactions on Software Engineering 48 (9) (2021) 3280–3296.

[56] J. Wei, et al., Chain-of-thought prompting elicits reasoning in large language models, Advances in neural information processing systems 35 (2022) 24824–24837.

[45] A. I. Sotirov, Automatic vulnerability detection using static source code analysis, Ph.D. thesis, Citeseer (2005).

[57] T. Kojima, et al., Large language models are zero-shot reasoners, Advances in neural information processing systems 35 (2022) 22199–22213.

[55] T. Dettmers, et al., Qlora: Efficient finetuning of quantized llms, Advances in Neural Information Processing Systems 36 (2024).

[46] M. Monperrus, Automatic software repair: A bibliography, ACM Comput. Surv. 51 (1) (jan 2018). doi: 10.1145/3105906. URL https://doi.org/10.1145/3105906

[58] S. Ren, et al., Codebleu: a method for automatic evaluation of code synthesis, arXiv preprint arXiv:2009.10297 (2020). 14

[59] G. Bhandari, et al., Cvefixes: automated collection of vulnerabilities and their fixes from open-source software, in: Proceedings of the 17th International Conference on Predictive Models and Data Analytics in Software Engineering, PROMISE 2021, Association for Computing Machinery, New York, NY, USA, 2021, p. 30–39. doi: 10.1145/3475960.3475985. URL https://doi.org/10.1145/3475960.3475985 [60] J. Akhoundali, et al., Morefixes: A large-scale dataset of cve fix commits mined through enhanced repository discovery, in: Proceedings of the 20th International Conference on Predictive Models and Data Analytics in Software Engineering, 2024, pp. 42–51. [61] Y. Wang, et al., CodeT5: Identifier-aware unified pretrained encoder-decoder models for code understanding and generation, in: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics, Online and Punta Cana, Dominican Republic, 2021, pp. 8696–8708. doi:10.18653/v1/2021.emnlp-main.685. URL https://aclanthology.org/2021. emnlp-main.685/ [62] S. M. S. Talebi, et al., Undo workarounds for kernel bugs, in: 30th USENIX Security Symposium (USENIX Security 21), USENIX Association, 2021, pp. 2381–2398. URL https://www.usenix.org/conference/ usenixsecurity21/presentation/talebi

15

Related documents

Record · ID 1680452 · SHA-256 186ae4b6b8d97677
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive