MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair
Simiao Liu, Li Zhang, Fang Liu, Xiaoli Lian, Yang Liu, Yinghao Zhu

TL;DR
MemRepair introduces a hierarchical memory-augmented framework that enhances automated vulnerability repair by enabling iterative, experience-driven fixes across multiple files and languages, outperforming existing methods.
Contribution
It presents a novel memory-augmented agentic framework with three memory layers for repository-level vulnerability repair, improving effectiveness over existing approaches.
Findings
Achieves state-of-the-art repair rates on benchmark datasets.
Outperforms existing general-purpose and specialized repair tools.
Maintains competitive repair cost while improving reliability.
Abstract
Modern software ecosystems face a rapidly growing number of disclosed vulnerabilities, increasing the need for automated repair techniques that can operate reliably at repository scale. Although Large Language Model (LLM)-based agents have recently shown promise for automated vulnerability repair (AVR), most existing systems still treat repair as a single generation step over the currently visible code context. As a result, they lack a persistent mechanism for reusing prior fixes or learning from failed validation attempts, which limits their effectiveness on complex, multi-file repair tasks. We present MemRepair, a memory-augmented agentic framework that formulates vulnerability repair as an iterative, experience-driven process. MemRepair combines three complementary memory layers, i.e., History-Fix, Security-Pattern, and Refinement-Trajectory memories, with a dynamic feedback-driven…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
