Skip to content

EviRepair: Evidence-Driven Agents for Reliable Vulnerability RepairEviRepair: Evidence-Driven Agents for Reliable Vulnerability Repair

Paper Tracker· arXiv:2610.13491· Yilian Shi, Qingyu Liu, Tianyi Zhou, Wende Tan, Chenyang Si, Yueming Lyu, Xia Hu, Dongrui Liu·Indexed by this site · 2026-10-12· Originally publishedTools

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors say EviRepair's average across three backbones is 79.13% on PatchEval and 93.11% on SEC-bench.

Questions
Repository-level automated vulnerability repair requires evidence to support vulnerability understanding and patches, but the authors state that existing single-agent and multi-agent pipelines lack evidence consistency review, and erroneous or incomplete understanding propagates into patch generation.
Methods
EviRepair splits repair into vulnerability diagnosis and patch synthesis. Diagnosis uses independent agents to collect reachability, reproduction, and boundary evidence, performs consistency review, and assembles it into a vulnerability model; synthesis generates patches from that model and validates them with a verification matrix and patch review.
Experiments and results
Baselines are Codex and OpenCode. The authors state the average resolved rate across three backbones on PatchEval and SEC-bench is 79.13% and 93.11%. In Table 1, OpenCode is higher on JS+DeepSeek and OSS-Fuzz+Qwen.
Limitations and future work
The authors state that evaluation is limited to PatchEval and SEC-bench, security assessment stops at benchmark-level verification, and the multi-agent system has additional calls, latency, and cost. Experiments cover three backbones and two agent frameworks; the paper does not report the number of repetitions or the number of queries.
Experimental setupDeepSeek-V4.1-Flash、GLM-5.2 et al. · PatchEval、SEC-bench · %Resolved
Evaluated models
DeepSeek-V4.1-FlashGLM-5.2Qwen3.8-27B
Benchmarks
PatchEvalSEC-bench
Metrics
%Resolved
AI summaryEviRepair is an evidence-driven multi-agent framework for repository-level automated vulnerability repair (AVR), enabling agents to collaboratively collect vulnerability evidence, verify evidence consistency, and build a reviewed vulnerability model to support patch synthesis and validation. On the PatchEval and SecBench benchmarks, combined with multiple agent frameworks and LLMs, its repair resolution rate improves by an average of 16.37% and 40.33%, respectively.

EviRepair is an evidence-driven multi-agent framework for repository-level automated vulnerability repair (AVR), enabling agents to collaboratively collect vulnerability evidence, verify evidence consistency, and build a reviewed vulnerability model to support patch synthesis and validation. On the PatchEval and SecBench benchmarks, combined with multiple agent frameworks and LLMs, its repair resolution rate improves by an average of 16.37% and 40.33%, respectively.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Repository-level vulnerability repair lacks evidence consistency review; EviRepair connects diagnosis and patch synthesis via a reviewed vulnerability model.

    How to make the evidence in the repair process sufficient to support accurate vulnerability understanding and patch generation.

    • Scenario: Repository-level automated vulnerability repair aims to generate patches for software vulnerabilities. The authors state that template, program analysis, and search methods often struggle with real-world vulnerabilities requiring program semantics and repository-level context, and practice still relies heavily on manual effort.
    • Existing limitations: The authors state that single-agent systems perform analysis, generation, and verification in the same pipeline, and diagnostic evidence enters repair decisions without dedicated review. Existing multi-agent frameworks directly aggregate agent outputs without verifying evidence consistency before generation, and do not use verified evidence for patch validation.
    • Authors' framing: Successful repair requires not only code changes but also evidence that the changes address the underlying vulnerability. The evidence to be reconstructed may be unavailable, incomplete, noisy, or mutually inconsistent.
    • This paper proposes: An evidence-driven multi-agent framework, EviRepair. The diagnosis phase collects and reviews vulnerability evidence, and the synthesis phase generates and validates patches using the reviewed vulnerability model as specification.
    • Task input: Vulnerability report R, target repository P, and initial evidence E0. The authors state that in realistic settings, E0 may be only a natural language description of a suspected vulnerability. The task is to reconstruct the vulnerability model and synthesize a patch that blocks the reported unsafe behavior while preserving legitimate behavior.
  2. What related research exists?

    Related work is divided into traditional repair, single/multi-agent, and different datasets with evidence constraints; the experimental baselines are Codex and OpenCode.

    The authors discuss prior work along two lines: repair paradigms and datasets, and position this paper on the problem of reconstructing evidence from sparse reports.

    Traditional methods and single-agent

    • Traditional AVR: Uses hand-crafted rules, tests, and historical fixes to generate and filter patches (Le Goues et al., 2012; Huang et al., 2019; Gao et al., 2021; Chen et al., 2023; Fu et al., 2022; Zhou et al., 2024). The authors claim their modeling capability is limited, making it hard to handle program dependencies and runtime behavior in large repositories.
    • Single-agent: RepairAgent (Bouzenia et al., 2025) and PATCHAGENT (Yu et al., 2025) combine retrieval, tools, and execution feedback for iterative localization and patch validation. The authors claim that putting multiple types of reasoning into the same context causes information entanglement and bias. The introduction also names Liu et al. (2025) and Kulsum et al. (2024), saying they lack a dedicated evidence review stage.

    Multi-agent repair

    • Explaining vulnerabilities: AutoPatch (Seo et al., 2025) and AgenticRepair (Fu et al., 2026) use expert agents to explain vulnerabilities from code, traces, and repository history.
    • Deriving constraints: VulnResolver (Zhang et al., 2026a) and ContraFix (Liu et al., 2026a) use multi-agent reasoning to derive safety constraints and repair requirements. The authors claim that decoupling contexts and jointly analyzing evidence is promising for complex vulnerability repair.
    • Criticism in the introduction: Only targets Zhang et al. (2026b;a), Liu et al. (2026b), and Fu et al. (2026). The authors claim they directly aggregate intermediate outputs without verifying evidence consistency before generation, and do not use verified evidence for patch validation.

    Vulnerability repair datasets

    • Static code pairs: Big-Vul, CVEfixes, MegaVul evaluate against vulnerability–fix code pairs. The authors claim they cannot confirm whether patches remove exploitable behavior and preserve normal functionality.
    • Executable evaluation: Vul4J, Vul4C, VulnRepairEval combine real project revisions with security evidence and use containerized differential execution to strengthen validation.
    • Less-information settings: PatchEval, SE-bench, CyberGym-E2E, CVE-Bench impose different information constraints, from plain-text descriptions to black-box with very little material. The authors claim that evidence availability strongly affects task difficulty and repair performance. Related work writes Lee et al. (2025) as SE-bench, while the experimental section writes SEC-bench.

    Experimental baselines

    • Baselines and benchmarks: Codex v0.153.2 and OpenCode v1.17.7; benchmarks are PatchEval and SEC-bench.

    The authors claim that single-agent and multi-agent approaches have complementary strengths and weaknesses. This paper studies reconstructing evidence from sparse reports: using multi-agent division of labor for subtask reasoning and cross-evidence validation to achieve the global consistency that single-agent designs target.

  3. How does the paper address this problem?

    The diagnosis stage independently gathers evidence and reviews consistency; the patch stage only generates, verifies, and modifies patches according to the reviewed vulnerability model.

    EviRepair decomposes repository-level automatic vulnerability repair into vulnerability diagnosis and patch synthesis, passing only the reviewed vulnerability model M between them. Each agent uses independent context and exchanges results only through structured records with fixed fields (Figure 2).

    Problem setting

    The input is a report R, repository P, and initial evidence E0. The authors write the key repair evidence as E={Ereach, Erepro, Eoracle, Eboundary, Epreserve}, corresponding respectively to source-to-sink reachability, executable reproduction, runtime observations and expected post-repair behavior, security boundaries, and legitimate behaviors that should be preserved. The vulnerability model is M=f(R, P, E0, E). These components can be missing, incomplete, noisy, or contradictory. The patch must block the unsafe behavior in the report and preserve legitimate behavior.

    Vulnerability diagnosis

    • Hypothesis: The Analysis Coordinator reads the report and examines the repository, forms security hypotheses, each giving a suspected entry point, sink, and vulnerability category, and then dispatches three agents in parallel. Each agent receives the report, repository, and hypothesis, and cannot see other agents' findings.
    • Forensics: The Reachability Analyzer checks whether attacker-controlled input can reach the sink from the entry point and reports the path and transformations along it. The Vulnerability Reproducer constructs an executable reproducer and runtime oracle, characterizing pre-repair vulnerability behavior and expected post-repair behavior, and runs them on the original code. The Boundary Analyzer derives from the code near the sink and the vulnerability category the inputs that must be blocked and the legitimate behaviors that must be preserved. Each finding is accompanied by code locations, analysis results, or execution logs.
    • Review: The Evidence Consistency Reviewer judges whether findings can enter M. It partially does this by rerunning the reproducer and oracle, checking whether findings point to the same vulnerability, whether they cover the claims in the report, and whether the oracle is usable. Two rules are: agreement among agents is not evidence; claims supported only by the report are never confirmed.
    • Refinement: When a check fails, the reviewer returns a targeted request indicating the failed check, conflicting evidence, and missing items. The coordinator only re-dispatches the responsible agent and retains verified evidence. The loop continues until everything passes or the budget is exhausted. The method section does not give the number of rounds.

    Vulnerability model

    After review passes, the Analysis Coordinator assembles M, which is the only diagnostic output given to patch synthesis. The five fields are Root Cause, Attack Path, Runtime Oracle, Security Boundary, and Preserved Behaviors. The last two fields are acceptance criteria: a patch is accepted only if it removes the unsafe behavior and preserves existing behavior. Appendix A gives the full schema.

    Patch synthesis

    • Verification matrix: The Repair Coordinator translates M into a verification matrix. Violating inputs from the security boundary and their variants must be blocked, legitimate inputs and compatibility requirements from preserved behaviors must remain the same as before, and it checks whether the patch applies cleanly and the project still builds. Claims not confirmed by diagnosis are marked as unverified cases. The coordinator also gives repair instructions, locating the root cause and listing two to four feasible fixes, preferring those that change legitimate behavior the least.
    • Generation: The Patch Synthesizer implements one patch according to the instructions, fixing the root cause rather than filtering specific reproduction inputs, so that variants on the same attack path are also blocked. It then executes each row of the matrix on the patched repository, attaching runtime evidence. This stage does not revise the diagnosis.
    • Re-review: The Patch Reviewer is in an isolated context, seeing M, the filled matrix, and the patch diff, but not the synthesizer's reasoning. It accepts only when each row meets expectations and the patch is consistent with M: fixing at the root cause, removing the unsafe behavior, and preserving existing behavior. The authors state that passing the matrix alone is insufficient because the matrix is built by the system itself; legitimate inputs and variants are used to prevent the patch from only suppressing observed triggers or rejecting valid inputs. On failure, it reports the failed rows and violated conditions, and the synthesizer modifies according to the feedback until acceptance or budget exhaustion.

    Appendix C gives the system and user prompts for the two reviewers; the authors state the remaining prompts are in the code repository. The checklists and phrasing constraints in the prompts are not paraphrased here.

  4. What experiments did the paper conduct?

    The authors state average improvements of 16.37% and 40.33%; on Table 1, most subsets are higher, and two are higher for OpenCode.

    Experimental Setup

    • Systems and backbones: Baselines are Codex v0.153.2 and OpenCode v1.17.7. Backbones are DeepSeek-V4.1-Flash (written DeepSeek-4.1-Flash in Table 1), GLM-5.2, Qwen3.8-27B. The introduction names only the first two; Section 4.1 runs all three. Each system uses the same LLM, the same sandbox, and the same tools.
    • Time limits: EviRepair has a diagnosis limit of 3 hours and a synthesis limit of 2 hours; both baselines have a uniform 5 hours per task.
    • PatchEval: 230 CVE repair tasks: Go 83, Python 70, JavaScript 77. Only the vulnerability description and target repository are given, without executable PoCs, and hidden tests are used for dynamic evaluation.
    • SEC-bench: 300 real security tasks: CVE 200, OSS-Fuzz 100. Patch tasks additionally provide sanitizer output, and evaluation follows the default medium setting. The paper does not explain the difference between medium and other levels. The abstract writes SecBench.
    • Metrics and constraints: %Resolved is the proportion of tasks where the generated patch passes the benchmark's hidden tests. Network access is disabled during repair to prevent retrieving ground truth from external sources. Determination follows the official protocol. The paper does not use LLM review, nor does it report repetitions or human agreement.
    • Aggregation: RQ2 and RQ3 average the resolved rate for each system across the backbones it was evaluated on.

    Main Results

    The table below is Table 1's Overall %Resolved. Before the slash is PatchEval (230); after the slash is SEC-bench (300).

    Swipe horizontally to read the table

    BackboneCodexOpenCodeEviRepair
    DeepSeek-4.1-Flash78.26% / 73.00%87.83% / 90.00%89.13% / 96.33%
    GLM-5.267.39% / 62.00%60.87% / 77.33%73.04% / 94.00%
    Qwen3.8-27B64.35% / 52.67%66.96% / 82.67%75.22% / 89.00%
    • Averages: The authors state that averaged over backbones, EviRepair achieves 79.13% on PatchEval and 93.11% on SEC-bench; Codex achieves 70.00% and 62.56%; OpenCode achieves 71.89% and 83.33%. Relative to OpenCode, the authors state the proportion of unresolved tasks decreases by about 26% and 59%. The abstract, introduction, and conclusion state average improvements of 16.37% and 40.33%; the paper does not clarify whether these percentages are absolute differences or relative increases.
    • Per-backbone differences: Section 4.2 states that relative to the stronger baseline on the same backbone, improvements on PatchEval are 1.30, 5.65, and 8.26 percentage points; on SEC-bench they are 6.33, 16.67, and 6.33 percentage points, in the order DeepSeek-4.1-Flash, GLM-5.2, Qwen3.8-27B. Among 21 same-backbone, same-subset comparisons, the authors state 18 are highest, 1 is a tie.
    • Exceptions and subsets: On JavaScript + DeepSeek-4.1-Flash, OpenCode achieves 87.01% and EviRepair 81.82%; on OSS-Fuzz + Qwen3.8-27B, OpenCode achieves 93.00% and EviRepair 87.00%. On JavaScript + GLM-5.2, EviRepair and Codex both achieve 72.73%. The authors state that on SEC-bench's CVE subset, EviRepair's average is 92.83%, higher than Codex by 41.17 percentage points and higher than OpenCode by 14.00 percentage points. The authors state that OSS-Fuzz provides sanitizer reports pointing to crash locations, so all systems perform higher and differences are smaller.

    Vulnerability Types

    • Grouping: Figure 4 shows resolved rates by category, with system values averaged over the three backbones. Categories with more than 10 tasks are shown separately; the rest are merged into Other. PatchEval uses primary CWE; SEC-bench's CVE uses NVD primary weakness, and OSS-Fuzz uses the root-cause category from official crash reports. The text does not give specific percentages for each category.
    • Authors' description of the figure: On PatchEval, the largest gains are for CWE-863 and CWE-285, followed by CWE-73 and CWE-601; on CWE-94 and CWE-89, the systems are similar; on CWE-918, there is no advantage. On SEC-bench, EviRepair leads in every category, with the largest gains for CWE-416 and CWE-476cars, and the smallest for heap buffer overflow.
    • Authors' explanation: The authors state that authorization-style repairs first require deciding which requests to allow or deny; this is the security boundary established by the Boundary Analyzer. For CWE-918, the authors speculate that reproducing SSRF requires outbound requests, which the network-isolated sandbox cannot observe, making the runtime oracle weaker. The authors state that help is greater when the fix location differs from where the vulnerability manifests, or when the fix depends on a clear boundary between allowed and denied.

    Repair Difficulty

    • Setting: Figure 5 bins tasks by the number of changed lines, hunks, and files in the ground-truth patch. The figure caption states that lines are averages over the three backbones and shading is min–max. Except for one bin, the text does not give exact readings for each bin.
    • Authors' claims: All systems decline as patches grow larger, but EviRepair declines more slowly; it leads or ties in every line-count bin, with the 21–50 line bin around 72% vs. baselines around 56%; on hunks it leads except the 4-hunk bin, with the largest lead at six or more hunks; it is higher than both baselines on patches touching one or two files.
    • Multi-file exception: Tasks with three or more files number only 7/230. The authors state that on these tasks OpenCode achieves the highest results, and EviRepair resolves none with four or more files. The authors state the sample is small and the estimate unstable, and state this is consistent with the vulnerability model focusing on a single root cause and attack path.

    Phase Ablations and Backbone Scale

    • Ablations: Table 2 on GLM-5.2 and PatchEval shows the full system at 73.04%. With diagnosis made single-agent, it is 69.13% (a drop of 3.91 percentage points); with synthesis made single-agent, it is 67.83% (a drop of 5.21 percentage points); with both changed, it is 60.87% (a drop of 12.17 percentage points). The authors state that the sum of the two individual losses is 9.12 percentage points, less than replacing both together, and state the two phases reinforce each other, so errors missed in one phase can still be caught by the other. Figure 6 and Appendix B show an example of a two-phase trajectory; the text does not give the resolved number for this example.
    • Small backbone: The authors state that structured evidence largely compensates for a smaller backbone. EviRepair with Qwen3.8-27B achieves 75.22% on PatchEval, higher than both baselines on that backbone and higher than Codex's 67.39% and OpenCode's 60.87% on GLM-5.2. On SEC-bench it is 89.00%, higher than all baselines on GLM-5.2; the authors state it approaches OpenCode+DeepSeek-4.1-Flash's 90.00%.
    • Difference trend: On PatchEval, the difference relative to the strongest baseline on the same backbone, the authors state, goes from 1.30 percentage points with DeepSeek-4.1-Flash to 5.65 with GLM-5.2 and 8.26 with Qwen3.8-27B. The authors state that the weaker the backbone, the more the evidence from diagnostic reconstruction determines whether repair succeeds. This trend is less clear on SEC-bench, which the authors attribute to sanitizer output already providing partial evidence to all systems.

    Other Ablations and Analyses

    • Single-agent diagnosis, GLM-5.2, PatchEval: Go 67.47%, Python 67.14%, JavaScript 72.73% (Table 2); JavaScript matches the full system, which the paper does not explain.
    • Single-agent synthesis: Go 69.88%, Python 65.71%, JavaScript 67.53%; Go matches the full system.
    • Single-agent end-to-end: Go 49.40%, Python 64.29%, JavaScript 70.13%, Overall 60.87%.
    • The paper does not report iteration counts, query counts, repeated experiments, or statistical tests.
    • The Figure 3 caption states that numbers atop bars are absolute improvements relative to each baseline; the text does not list all bar-top numbers item by item.
  5. What are some points that can be further explored?

    In Section 6, the authors state three limitations: evaluation benchmarks, benchmark-level security verification, and additional call costs.

    Limitations and Future Directions Identified by the Authors

    • Evaluation scope: The authors state that evaluation is limited to PatchEval and SEC-bench, which may not capture the full diversity of vulnerabilities, languages, repositories, and deployment environments (Section 6).
    • Security assessment: The authors state that security assessment is limited to benchmark-level verification, and reported results do not guarantee that vulnerabilities are fully eliminated, that there are no regressions, or long-term maintainability (Section 6).
    • Cost: The authors state that the multi-agent design incurs additional model calls, latency, and cost (Section 6).
    • Future work: The authors state that future work should evaluate in broader real-world settings, strengthen security and regression assessment, and further study the trade-off between repair quality and resource cost (Section 6).

    Experimental Coverage

    • Backbones are DeepSeek-V4.1-Flash, GLM-5.2, and Qwen3.8-27B; comparison frameworks are Codex v0.153.2 and OpenCode v1.17.7, with the same sandbox and tool access (Section 4.1).
    • Benchmarks are PatchEval with 230 tasks (Go 83, Python 70, JavaScript 77) and SEC-bench with 300 tasks (CVE 200, OSS-Fuzz 100, default medium); the metric is %Resolved on hidden tests (Section 4.1, Table 1).
    • Network is disabled during repair. EviRepair has a diagnosis limit of 3 hours and a synthesis limit of 2 hours; both baselines have 5 hours per task (Section 4.1).
    • Ablations on GLM-5.2 and PatchEval compare single-agent diagnosis, single-agent synthesis, single-agent end-to-end, and the full pipeline (Table 2). Type and difficulty analyses average over the three backbones (Sections 4.3, 4.4).
    • The paper does not report repetitions, statistical tests, iteration counts, query counts, nor LLM review or human agreement (Section 4).
  6. Summarize the main content of the paper

    EviRepair uses a reviewed vulnerability model for repository-level repair; overall resolved rates are mostly higher than baselines, with subset exceptions.

    EviRepair is a repository-level automated vulnerability repair framework for sparse vulnerability reports, separating diagnosis from patch synthesis using a reviewed vulnerability model.

    • Problem: The authors state that existing single-agent systems use diagnostic evidence for repair without dedicated review, and existing multi-agent systems directly aggregate outputs, so inconsistent or incomplete findings enter the patch.
    • Approach: Independent agents separately collect reachability, executable reproduction and oracle, security boundaries, and behaviors to preserve; only after a consistency review passes is the vulnerability model formed. The synthesis phase converts the model into a verification matrix, and an isolated reviewer decides whether to accept or return the patch against the matrix and model, without revising the diagnosis. Two review rules are: agreement among agents is not evidence, and claims supported only by reports are not confirmed.
    • Main results: In Table 1, EviRepair with DeepSeek-4.1-Flash achieves overall %Resolved of 89.13% on PatchEval and 96.33% on SEC-bench; with Qwen3.8-27B, 75.22% and 89.00%. The authors state the average over three backbones is 79.13% and 93.11%, higher than the corresponding averages for Codex and OpenCode. In the same table, OpenCode is higher on JavaScript+DeepSeek (87.01% vs. 81.82%) and OSS-Fuzz+Qwen3.8-27B (93.00% vs. 87.00%).
    • Other results: On GLM-5.2 and PatchEval, the full system achieves 73.04%, and with both stages made single-agent, 60.87% (Table 2). The authors state that the weaker the backbone, the more the evidence from diagnostic reconstruction affects whether repair succeeds. EviRepair resolves none of the tasks with four or more files, which fall within the 7/230 spanning three or more files.
    • Authors' conclusion: The authors state that phase decomposition and independent evidence review support evidence-based vulnerability repair, while noting in Section 6 that passing benchmarks does not guarantee the vulnerability is fully eliminated.
Read originalarxiv.org