Patch Validation in Automated Vulnerability Repair

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yu, Zheng, Shi, Wenxuan, Sun, Xinqian, Feng, Zheyun, Xu, Meng, Xing, Xinyu
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912975763275776
author Yu, Zheng
Shi, Wenxuan
Sun, Xinqian
Feng, Zheyun
Xu, Meng
Xing, Xinyu
author_facet Yu, Zheng
Shi, Wenxuan
Sun, Xinqian
Feng, Zheyun
Xu, Meng
Xing, Xinyu
contents Automated Vulnerability Repair (AVR) systems, especially those leveraging large language models (LLMs), have demonstrated promising results in patching vulnerabilities -- that is, if we trust their patch validation methodology. Ground-truth patches from human developers often come with new tests that not only ensure mitigation of the vulnerability but also encode extra semantics such as root cause location, optimal fix strategy, or subtle coding styles or conventions. And yet, none of the recent AVR systems verify that the auto-generated patches additionally pass these new tests (termed as $\text{PoC}^+$ tests). This is a subtle yet critical omission. To fill this gap, we constructed a benchmark, $\textrm{PVBench}$, with 209 cases spanning 20 projects. Each case includes basic tests (functional tests before the patch and the PoC exploit) as well as the associated $\text{PoC}^+$ tests. Evaluated on three state-of-the-art AVR systems, we find that over 40\% of patches validated as correct by basic tests fail under $\text{PoC}^+$ testing, revealing substantial overestimation on patch success rates. Analyzing these patches that are falsely labeled as correct, we suggest that AVR tools should improve in three critical areas: root cause analysis, adherence to program specifications, and capturing developer intention.
format Preprint
id arxiv_https___arxiv_org_abs_2603_06858
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Patch Validation in Automated Vulnerability Repair
Yu, Zheng
Shi, Wenxuan
Sun, Xinqian
Feng, Zheyun
Xu, Meng
Xing, Xinyu
Software Engineering
Automated Vulnerability Repair (AVR) systems, especially those leveraging large language models (LLMs), have demonstrated promising results in patching vulnerabilities -- that is, if we trust their patch validation methodology. Ground-truth patches from human developers often come with new tests that not only ensure mitigation of the vulnerability but also encode extra semantics such as root cause location, optimal fix strategy, or subtle coding styles or conventions. And yet, none of the recent AVR systems verify that the auto-generated patches additionally pass these new tests (termed as $\text{PoC}^+$ tests). This is a subtle yet critical omission. To fill this gap, we constructed a benchmark, $\textrm{PVBench}$, with 209 cases spanning 20 projects. Each case includes basic tests (functional tests before the patch and the PoC exploit) as well as the associated $\text{PoC}^+$ tests. Evaluated on three state-of-the-art AVR systems, we find that over 40\% of patches validated as correct by basic tests fail under $\text{PoC}^+$ testing, revealing substantial overestimation on patch success rates. Analyzing these patches that are falsely labeled as correct, we suggest that AVR tools should improve in three critical areas: root cause analysis, adherence to program specifications, and capturing developer intention.
title Patch Validation in Automated Vulnerability Repair
topic Software Engineering
url https://arxiv.org/abs/2603.06858