PatchBench

PatchBench

Evaluating AI Agents for Vulnerability Patching

Most patching benchmarks accept a patch once the original proof-of-concept stops crashing. PatchBench hides the root cause off the crash stack, transplants and mutates each vulnerability so memorized fixes no longer apply, and checks that a patch behaves correctly on both vulnerable and benign inputs.

CVE-2022-1276 mruby · crash in the VM, bug in the compiler

Agent patch

src/class.c crash site · mrb_get_args
argv_on_stack = argc < 15;if (!argv_on_stack) {  if (!mrb_array_p(*argv))    mrb_argnum_error(mrb, argc, argc_min, argc_max);  struct RArray *a = mrb_ary_ptr(*argv);

✗ Stops the reported crash, but the wrong argument packing remains.

Reference patch

…/mruby-compiler/core/codegen.c root cause · gen_assignment
if (tree->cdr->car) {  if (n == 14) {  if (n == 13) {    pop_n(n);

✓ Fixes the packing condition in the compiler, where the bug is.

Patching tasks
213
Real-world projects
32
CWE types
16
PoC-only inflation
1.83×

Leaderboard

A task counts as solved only when the patch passes security validation on every PoC variant and semantic validation on benign inputs. Each bar ends at the rate an original-PoC-only check would report.

PatchBench results, sorted by solved rate
# Agent Solved, security pass and PoC pass rates
1
Claude Code† Claude Opus 5.5
68.5 99.1 87.8 76.1 $0.56
2
Codex GPT-5.6 Sol
59.2 97.2 81.7 70.9 $1.50
3
OpenHands GPT-5.6 Sol
58.2 98.1 81.2 70.0 $0.90
4
Claude Code Claude Opus 4.8
56.8 97.7 75.6 68.1 $1.53
5
Atlantis AIxCC CRS‡ Team Atlanta · 2 models (GPT-5.6 Sol and Claude Opus 4.8)
48.4 92.0 70.9 66.7 $16.63‡
6
OpenHands Claude Opus 4.8
47.9 93.0 71.8 62.0 $1.43
7
OpenHands Gemini 3.5 Flash
44.1 77.9 61.0 64.8 $1.35
8
Buttercup AIxCC CRS Trail of Bits · GPT-5.6 Sol
42.7 72.3 58.2 64.8 $2.42
9
OpenHands GPT-5
42.3 96.2 70.0 56.8 $0.37
10
OpenHands Claude Sonnet 4.5
38.0 85.9 65.3 61.0 $1.60
11
OpenHands Gemini 3.1 Pro
31.5 57.7 48.8 60.6 $1.23
12
RoboDuck AIxCC CRS Team Theori · GPT-5.6 Sol
29.6 46.5 39.9 51.6 $1.30

All rates are percentages of the 213 tasks, with a $5 budget per task unless noted, and web access disabled. Cost is the average cost per task in USD.

  1. Not evaluated in the paper. These agents run with extra-high reasoning effort and no budget cap.
  2. Atlantis runs four concurrent nodes with a $5 cap each ($20 in total), so it is not directly comparable to other agents.

Add your agent to the leaderboard

Cost

Solved rate against average spend per task. The top agent, Claude Code + Claude Opus 5.5, solves 68.5% of tasks at an average of $0.56 per task. Some other agents spend more per task yet solve fewer tasks.

  • General-purpose agent
  • AIxCC CRS
30%40%50%60%70%$0$0.5$1$1.5$2$2.5$16$17 Average cost per task (USD)
Atlantis runs four $5 nodes, so its axis segment is broken off to the right. Hover or focus a point to see its values. All values are also in the table above.

Findings

  1. PoC-only validation inflates solve rates by 1.83×.

    Averaged over all agents, 83.1% of patches stop the original PoC crash, but only 45.3% of tasks are solved. Four agents pass 96–98% of PoCs while their solved rates span 17 points, and OpenHands + GPT-5 ranks fourth by PoC pass rate but eighth by solved rate.

  2. Semantic validation is the main bottleneck.

    Agents pass 63.4% of semantic validation on average. New sanitizer errors are rare (95.7% pass), so most failures come from mismatched output state (75.5% pass) and broken unit tests (79.9% pass).

  3. More budget barely helps.

    Raising the per-task cap from $5 to $25 lifts Codex + GPT-5.6 Sol from 59.2% to 61.5%, where it plateaus. At $25 no agent runs out of budget on more than 1.4% of tasks, yet 67 tasks remain unsolved by every agent.

How the benchmark is built

Cite

@misc{shen2026PatchBench,
  title = {{{PatchBench}}: Evaluating {{AI}} Agents for Vulnerability Patching},
  author = {Shen, Chihao and Li, Jiacheng and Mahajan, Aastha and Tian, Jeffery Siyuan and Kwon, Yonghwi and Chen, Yizheng},
  year = 2026,
  number = {arXiv:2609.04075},
  eprint = {2609.04075}
}