Adversarial repair loop raises patch coverage to 84.7% on CVE subjects
P2Patch improves held-out fix-closed coverage from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5% across 101 CVE cases
AI/ML arXiv 14 Oct 2026 Method Prototype evidence
Published as “P2Patch: Exploit-Guided Vulnerability Repair”
Why it matters
Adversarial exploit testing can materially improve automated vulnerability repair, revealing gaps that one-shot validation misses.
Summary
P2PATCH’s exploit-guided adversarial loop finds a distinct bypass in 41% of runs after the original proof-of-vulnerability is blocked, and raises held-out fix-closed coverage from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5% on 101 real CVE subjects. The evidence comes from a benchmark of 101 C/C++ and Java CVEs and compares against a single-pass Claude Code repair baseline. The results are strong but limited: coverage is still below 100% and the bypass finding occurs in less than half the runs.
What they found 2
- A distinct execution-confirmed bypass is discovered in 41% of runs after the patch blocks the original PoV.
“Across 101 C/C++ and Java CVE subjects, this adversarial loop surfaces a distinct confirmed exploit in 41% of runs after the patch has already blocked its original construction-time PoV.”
- Held-out fix-closed coverage improves from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5% compared to single-pass Claude Code repair.
“Against single-pass repair from the same finding using Claude Code, P2PATCH raises held-out fix-closed coverage from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5%.”
Caveats 4
- Coverage remains below 100% (84.7% fix-closed, 62.5% beyond-upstream).
- Only 41% of runs produce a new bypass, so many patches still rely on the original PoV only.
- The prototype does not claim host containment against a malicious repository.
- The outer loop is bounded. The final patch is therefore a bounded hardening result, not a proof of vulnerability absence.
What’s new here 4
- Treats each patch as a new attack target, growing a set of live PoVs that must all be blocked.
- Introduces an execution-mediated orchestrator that separates exploiter and patcher roles and protects role-specific artifacts.
- Releases VULNREPAIRBENCH, a 101-CVE benchmark with independent fix-closed and residual PoV suites.
- Shows higher security coverage than single-pass repair and recent published repair systems.