← Lab /Software

AgenticRepair patches 73% of real-world vulnerabilities using multi-faceted context

AgenticRepair achieves a 73% success rate on SEC-Bench, outperforming the strongest baseline by 29%

Software arXiv 31 Jul 2026 Method Prototype evidence

Published as “AgenticRepair: Multi-Faceted Program Context Engineering for Agentic Vulnerability Repair”

Why it matters

The approach could substantially reduce manual patching effort for complex, cross-file security bugs in C/C++ projects.

Summary

AGENTICREPAIR repairs 73% of 300 real-world vulnerabilities (220/300), outperforming all baselines and handling cross-file bugs in 40% of successful cases. The paper reports strong evidence from SEC-Bench but notes limited generalizability and potential data contamination.

What they found 2

  1. 73% overall success rate on SEC-Bench (220/300 repaired)

    “AGENTICREPAIR successfully repaired 220 vulnerabilities, achieving a success rate of 73%.”

  2. 40% of successful repairs involve edits across multiple files

    “90 (40%) of the successful repairs involve edits across multiple files”

Caveats 5

  • Success on certain vulnerability categories is low, e.g., only 33% on double-free bugs
  • quote: "2/6 (33.3%)"
  • Data Contamination. A potential threat to validity is that the base model may have been exposed to portions of the SEC-Bench dataset during pre-training. To mitigate this threat, we conducted a patch similarity analysis comparing AGENTICREPAIR’s generated patches with the corresponding gold patches. None of the 298 generated patches exactly matched the ground truth.
  • Non-determinism of LLMs. Large language models are inherently non-deterministic, which can affect reproducibility.
  • Generalizability. Our evaluation focuses on SEC-Bench, a benchmark designed to approximate realistic vulnerability repair scenarios in C/C++, grounded in real-world codebases and commit-level patches across diverse vulnerability types. While the benchmark provides meaningful evidence, further studies are needed to assess generalizability to other programming languages and vulnerability types beyond the vulnerabilities covered in SEC-Bench.

What’s new here 4

  • Integrates three engineered contexts-code-structure, runtime-execution, and commit-history-into a unified episodic memory for repair.
  • Uses a multi-agent scaffold where separate subagents extract each context and a dedicated repair subagent synthesizes patches.
  • Demonstrates effective cross-file vulnerability repair, a capability lacking in prior agentic or LLM-based methods.
  • Provides a full open-source replication package with execution logs and trajectories.