mlsanityData to 7 Oct 2026

PatchBench: Evaluating AI Agents for Vulnerability Patching

arXiv 2609.04075 ↗First posted 3 Sep 2026cs.CR cs.AI cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

AI agents have recently demonstrated strong performance in automated vulnerability patching. However, existing evaluations often validate a patch only by testing whether the provided Proof-of-Concept (PoC) input still triggers a crash. This leaves two key threats to validity: agents may reproduce memorized historical developer patches, or they may generate surface-level fixes that only suppress the reported crash. We study these concerns for C/C++ vulnerability patching. We introduce a patch similarity metric to detect memorized patches. On average, 25% of the agent patches exhibit substantial similarity to historical developer patches, indicating that patch memorization is a real threat to the validity of vulnerability patching evaluations. Meanwhile, agents also frequently exploit benchmark structures to pass patch validation by patching on the crash stack trace to suppress the crash, rather than localizing and fixing the root cause of the vulnerabilities. To handle these issues, we propose PatchBench, a new benchmark for evaluating AI agents on realistic vulnerability patching tasks. PatchBench selects vulnerabilities whose ground-truth fixes lie outside the crash stack and uses vulnerability transplant and code mutations to migrate historical vulnerabilities into new repository contexts, reducing the risks of surface-level fixes and patch memorization. We develop new patch validation methods that thoroughly evaluate both security and semantic correctness of agent patches. Across 11 state-of-the-art agents, including the top three AIxCC agents, the original PoC-only validation inflates the patching task solve rate of agents by 1.83× on average. Our results reveal key limitations of current patching agents and point to future research directions for more reliable vulnerability repair.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 71 references that are in the map. First posted on arXiv 3 Sep 2026.

Builds on

28 of 71 references.

References · 28

  1. 2020Extracting Training Data from Large Language Modelscited by 2,144
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  4. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  5. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  6. 2023Large Language Model Unlearningcited by 288
  7. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  8. 2023Time Travel in LLMs: Tracing Data Contamination in Large Language Modelscited by 175
  9. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  10. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
  11. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  12. 2025Holistic Agent Leaderboard: The Missing Infrastructure for AI Agent Evaluationcited by 83
16 more
  1. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 69
  2. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
  3. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
  4. 2023Unveiling Memorization in Code Modelscited by 29
  5. 2025PatchPilot: A Cost-Efficient Software Engineering Agent with Early Attempts on Formal Verificationcited by 22
  6. 2025PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilitiescited by 19
  7. 2024APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patchingcited by 18
  8. 2017Identifying Patch Correctness in Test-Based Program Repaircited by 16
  9. 2024GitBug-Java: A Reproducible Benchmark of Recent Java Bugscited by 13
  10. 2024Are Large Language Models Memorizing Bug Benchmarks?cited by 11
  11. 2025SoK: Automated Vulnerability Repair: Methods, Tools, and Assessmentscited by 11
  12. 2025SoK: Towards Effective Automated Vulnerability Repaircited by 9
  13. 2026SoK: DARPA's AI Cyber Challenge (AIxCC): Competition Design, Architectures, and Lessons Learnedcited by 9
  14. 2026ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 8
  15. 2026The Impact of Magma: A Ground-Truth Fuzzing Benchmarkcited by 3
  16. 2025CodeMorph: Mitigating Data Leakage in Large Language Model Assessmentcited by 2

Built on by

Not cited yet.