arXiv paper· computer security (LLM agents for vulnerability repair)· benchmark

PatchBench: Evaluating AI Agents for Vulnerability Patching

Chihao Shen, Jiacheng Li, Aastha Mahajan, Jeffery Siyuan Tian, Yonghwi Kwon, Yizheng Chen

cs.CR · cs.AI · cs.SE

Quick verdict

Claims PoC-only checks inflate AI patching solve rates 1.83x; PatchBench's stricter validation is well built, but selection bias and thin stats temper it.

Summary

The paper argues that current evaluations of LLM-based vulnerability patching agents are inflated by two validity threats: memorization of historical developer patches and PoC-only crash suppression. Using SEC-BENCH (300 C/C++ tasks), the authors introduce DiffBLEU, a CodeBLEU-derived, diff-aware similarity metric, and find ~25% of agent patches on average score above a validated 0.75 threshold against historical fixes; agent scaffolds memorize more than standalone LLMs. They also report 81% of Codex+GPT-5.6 Sol patches touch crash-stack functions, and 64% do so even when the developer fix lies outside the stack. PatchBench then rebuilds evaluation: 213 tasks over 16 CWEs and 32 projects, restricted to vulnerabilities whose fixes lie outside the crash stack, transplanted to newer commits with patch-site mutations, and manually audited reference patches. Validation combines PoC-seeded directed fuzzing (CONCFUZZ) with undirected fuzzing to build crashing and benign corpora, plus three semantic checks (sanitizer regression, output-state match against the reference-patched repo, unit tests). Across 11 agents including the top three AIxCC systems, PoC-only validation inflates solve rates 1.83x on average; top agents fall from over 97% PoC pass to roughly 57-59% solved. Limitations: corpus-dependent validation with 6.8-7.1% residual false accepts, no confidence intervals or significance tests shown in the provided text, and a selection criterion that trades realism for diagnostic power.

Review complete

Assessment at a glance

computer security (LLM agents for vulnerability repair)

4

risk flags identified

● high 0

● medium 2

● low 2

Reproducibility readinessmedium
Code & data availableyes
Review confidencehigh
AI text signal1/20 passages flagged
Deep research viableCode-reproducible

5 strengths · 5 weaknesses · 5 author questions

AI text signal = Binoculars zero-shot detector score over 20 sampled passages (Fast-DetectGPT co-reported) — absence does not prove human authorship, and a flag does not imply misconduct.

Levels reflect verification complexity — not a quality score. Evolve never rates your paper.

Key claims under review

  • On SEC-BENCH, an average of 25% of agent patches exceed a DiffBLEU score of 0.75 against historical developer patches, and agent scaffolds memorize more than standalone LLMs.
  • Agents overwhelmingly patch inside the crash stack: 81% of Codex+GPT-5.6 Sol patches touch crash-stack functions, and 64% do so even when the ground-truth fix lies outside the stack.
  • Across 11 agents on PatchBench, PoC-only validation inflates solve rates by 1.83x on average; the top three agents pass over 97% of original PoCs but solve only about 57-59% under full security+semantic validation.
  • PatchBench's transplant, mutation, and manual reference-patch curation reduce memorization and surface-fix shortcuts, leaving 67 of 213 tasks unsolved by all 11 agents.

Strengths

  • Quantifies both validity threats instead of asserting them

    The DiffBLEU study on SEC-BENCH measures an average 25% memorization rate (Fig. 4; threshold validated at 0 false positives and 1.1% false omission rate in A.7), and crash-stack statistics (81% of Codex+GPT-5.6 Sol patches touch crash-stack functions; 64% even when the developer fix lies outside the stack) pin down the shortcut behavior with numbers.

  • Reference patches are manually curated, a step most CVE/OSS-Fuzz benchmarks skip

    Sec. 4/A.2: commits that do not fix the root cause are discarded (ARVO task 11498, Fig. 8, where the so-called fix merely changed the fuzzer input grammar) and unrelated changes stripped, so each task has a manually verified root-cause fix rather than a raw developer commit.

  • Validation pipeline is stricter than AIxCC practice

  • Broad, current agent coverage with budget controls

  • Reproducibility scaffolding for artifacts

Weaknesses

  • Selection criterion is entangled with the thesis

  • No uncertainty quantification in the provided text

  • Residual false accepts are acknowledged but bounded only empirically

  • Memorization ground truth rests on a small, self-labeled validation set

  • Deployment gap of reference-dependent validation

Full Review Report

$1.99 · one-time

Unlock the complete preliminary analysis Evolve produced for this paper.

Report preview

Scope & Claims

PatchBench (arXiv 2609.04075, University of Maryland) is a benchmark-plus-study paper targeting the evaluation methodology of LLM-based vulnerability patching agents for C/C++. It makes two diagnostic claims and one constructive claim. Diagnostically: (1) evaluations on public vulnerabilities are contaminated — an average 25% of agent patches exceed a DiffBLEU similarity of 0.75 against the historical developer patch (Fig. 4), with agent scaffolds memorizing more than standalone LLMs; (2) PoC-only validation rewards crash suppression — 81% of Codex+GPT-5.6 Sol patches modify crash-stack functions, and 64% still do when the ground-truth fix lies outside the stack. Constructively: PatchBench (213 tasks, 16 CWEs, 32 projects) plus security+semantic validation reduces both artifacts; PoC-only validation inflates solve rates 1.83x on average across 11 agents, and the top three (Codex+GPT-5.6 Sol 59.2%, OpenHands+GPT-5.6 Sol 58.2%, Claude Code+Claude Opus 4.8 56.8%, Table 2) solve roughly half the benchmark versus over 97% original-PoC pass rates.

The remaining sections cover Methodology Assessment, Statistical Evidence, Results & Reproducibility, Limitations & Risks, and Verdict & Recommendations.

  • All 5 strengths & 5 weaknesses, analyzed in detail
  • 4 risk flags with severity, section & reviewer questions
  • Methods & statistical evidence assessment
  • 5 questions a peer reviewer would ask
  • Full six-dimension evaluation report & recommendations

One-time purchase · this paper only

One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.

Frequently asked questions

What is PatchBench?

PatchBench is a benchmark of 213 C/C++ vulnerability-patching tasks across 16 CWE types and 32 real-world open-source projects, designed to evaluate AI coding agents. Unlike earlier benchmarks, its tasks are chosen so the true fix lies outside the crash stack trace, historical vulnerabilities are transplanted to newer code versions with mutations at the patch site, and every reference patch is manually audited. Patches are validated for both security (many fuzz-generated crashing inputs) and semantic correctness (benign-input behavior, output-state match with the reference-patched repository, and unit tests).

Why do AI agents score so high on existing vulnerability-fixing benchmarks but much lower on PatchBench?

Older benchmarks validate a patch mainly by checking that the original Proof-of-Concept (PoC) input no longer crashes the program. Agents can pass by reproducing memorized developer patches (about 25% of agent patches are highly similar to historical fixes, per the paper's DiffBLEU analysis) or by superficially suppressing the crash without fixing the root cause. Under PatchBench's stricter security and semantic validation, top agents fall from over 97% PoC pass rates to roughly 57-59% of tasks solved, and PoC-only validation inflates solve rates by 1.83x on average.

What is DiffBLEU?

DiffBLEU is a patch-similarity metric introduced by this paper, built on CodeBLEU. It tokenizes code diffs while preserving add/remove operations and normalizing literals and comments, then compares patch hunks plus their surrounding control-flow and data-flow slices. A score above a validated threshold of 0.75 is treated as evidence that an agent-generated patch is substantially similar to the historical developer patch, suggesting memorization rather than independent reasoning.

Is the PatchBench code and dataset publicly available?

Yes. The paper states that code and benchmark are released at github.com/ai-sec-lab/PatchBench. The appendix also pins agent versions (Codex v0.145.0, OpenHands SDK v1.20.0, Claude Code SDK v0.2.100) and publishes the exact agent prompt used for all configurations.

About this review

This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.

  • The provided text is a sampled excerpt with marked gaps ([...sampling gap...]) covering, among others, parts of Sections 3.3-5 (including the Section 5.2 budget analysis) and Appendix A.3-A.6; statements about absent statistical reporting are scoped to the visible text.
  • The interpretation of Figure 4's paired percentages (e.g., 78.0% vs 91.7% at the x=0.75 line) as cumulative fractions below the threshold is inferred from the caption and the abstract's 25% average, since the figure axis labels were partially garbled in extraction.
  • The size of the DiffBLEU validation set behind the A.7 threshold statistics is not visible in the provided text; it may appear in a sampled-gap portion of the paper.

Go deeper on this paper

Wrote a paper? Stress-test it before reviewers do.

Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.

Scan your paper
PatchBench: Evaluating AI Agents for Vulnerability Patching | Evolve.Pub