license: apache-2.0
tags:
- security
- vulnerability
- patch
- cve
- code-repair
- llm
- coding-agent
π Overview
PatchEval-Verified is a benchmark for evaluating LLMs and coding agents on automated repair of real-world vulnerabilities. It contains 230 CVE cases with Docker-based evaluation environments, covering vulnerabilities reported between 2015 and 2025 across Go, JavaScript, and Python.
PatchEval-Verified updates the evaluation environments from the original PatchEval release. In the original benchmark, some PoC tests were adapted from project regression tests and were tied too closely to particular patch implementations. The revised tests evaluate whether a vulnerability is fixed rather than requiring a specific fix, improving robustness and reducing false negatives.
π Data Instance Structure
Each entry is a JSON object with the following fields:
cve_id: (str)
The CVE identifier, for example, CVE-2024-42005.
cve_description: (str)
The vulnerability description from NVD.
cwe_info: (dict)
Information about the associated Common Weakness Enumeration (CWE),
including its name and description.
repo: (str)
The URL of the affected source-code repository.
patch_url: (list[str])
URLs of the reference vulnerability fixes.
programing_language: (str)
The primary programming language of the vulnerable code. The field name
is intentionally preserved for compatibility with the released dataset.
vul_func: (list[dict])
Vulnerable code snippets and their source locations.
fix_func: (list[dict])
Reference fixed code snippets and their source locations.
image_url: (str)
The Docker image used to run patch validation for this CVE case.
Note:
patch_urlandfix_funccontain reference-fix information. They should not be exposed to a model or agent when evaluating end-to-end vulnerability repair unless the experimental setting explicitly allows such information.
π³ Docker Images and Evaluation
The 230 Docker images are published under:
ghcr.io/patcheval-cve/patcheval-cve:cve-<year>-<id>
The exact image for each case is provided in its image_url field. The PatchEval repository provides scripts for downloading the images, generating patches with CLI coding agents, and evaluating JSON/JSONL patch submissions.
A patch submission uses the following format:
{
"cve": "CVE-2021-23376",
"fix_patch": "diff --git ..."
}
A repair is considered successful only when the validation entrypoint in the corresponding Docker environment exits successfully.
π Citation
If you find PatchEval useful for your research and applications, feel free to give us a star β or cite us using:
@misc{wei2025patcheval,
title={PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilities},
author={Zichao Wei and Jun Zeng and Ming Wen and Zeliang Yu and Kai Cheng and Yiding Zhu and Jingyi Guo and Shiqi Zhou and Le Yin and Xiaodong Su and Zhechao Ma},
year={2025},
eprint={2511.11019},
archivePrefix={arXiv},
primaryClass={cs.CR},
url={https://arxiv.org/abs/2511.11019},
}
βοΈ License
This project is licensed under the Apache License 2.0.