File size: 3,282 Bytes
029756c 472d700 029756c 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 08a5d2f 472d700 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | ---
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:
```text
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_url` and `fix_func` contain 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:
```text
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:
```json
{
"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:
```bibtex
@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.
|