Evaluating LLMs for One-Shot Patching of Real and Artificial Vulnerabilities
Garg, Aayush, Khan, Zanis Ali, Degiovanni, Renzo, Tang, Qiang
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Dec-1-2025
- Country:
- North America
- Canada > Ontario
- Toronto (0.04)
- United States
- California
- San Diego County > San Diego (0.04)
- San Francisco County > San Francisco (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Michigan > Oakland County
- Rochester (0.04)
- New York > New York County
- New York City (0.05)
- Pennsylvania > Allegheny County
- Pittsburgh (0.04)
- Virginia > Arlington County
- Arlington (0.04)
- Washington > King County
- Seattle (0.04)
- California
- Canada > Ontario
- South America > Brazil (0.04)
- North America
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Information Technology > Security & Privacy (1.00)
- Technology: