Evaluating LLMs for One-Shot Patching of Real and Artificial Vulnerabilities
Not on the map. Why?
Abstract (arXiv)
Automated vulnerability patching is crucial for software security, and recent advancements in Large Language Models (LLMs) present promising capabilities for automating this task. However, existing research has primarily assessed LLMs using publicly disclosed vulnerabilities, leaving their effectiveness on related artificial vulnerabilities largely unexplored. In this study, we empirically evaluate the patching effectiveness and complementarity of several prominent LLMs, such as OpenAI's GPT variants, LLaMA, DeepSeek, and Mistral models, using both real and artificial vulnerabilities. Our evaluation employs Proof-of-Vulnerability (PoV) test execution to concretely assess whether LLM-generated source code successfully patches vulnerabilities. Our results reveal that LLMs patch real vulnerabilities more effectively compared to artificial ones. Additionally, our analysis reveals significant variability across LLMs in terms of overlapping (multiple LLMs patching the same vulnerabilities) and complementarity (vulnerabilities patched exclusively by a single LLM), emphasizing the importance of selecting appropriate LLMs for effective vulnerability patching.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 46 references that are in the map. First posted on arXiv 28 Nov 2025.
Builds on
21 of 46 references.
References · 21
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2024A Case Study of LLM for Automated Vulnerability Repair: Assessing Impact of Reasoning and Patch Validation Feedbackcited by 22
- 2024APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patchingcited by 19
- 2018A Comprehensive Study of Automatic Program Repair on the QuixBugs Benchmarkcited by 18
- 2022Aligning Offline Metrics and Human Judgments of Value for Code Generation Modelscited by 14
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
9 more
- 2025VulnRepairEval: An Exploit-Based Evaluation Framework for Assessing Large Language Model Vulnerability Repair Capabilitiescited by 12
- 2024VulnLLMEval: A Framework for Evaluating Large Language Models in Software Vulnerability Detection and Patchingcited by 9
- 2025LLM4CVE: Enabling Iterative Automated Vulnerability Repair with Large Language Modelscited by 9
- 2024Automated Program Repair: Emerging trends pose and expose problems for benchmarkscited by 7
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
- 2023Vulnerability Mimicking Mutantscited by 2
- 2021Cerebro: Static Subsuming Mutant Selectioncited by 1
- 2025Evaluating Pre-Trained Models for Multi-Language Vulnerability Patchingcited by 1
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repaircited by 1
Built on by
Not cited yet.