Datasets:

ArXiv:
License:
zengjun925 commited on
Commit
08a5d2f
·
verified ·
1 Parent(s): 04352e9

release patcheval

Browse files
Files changed (2) hide show
  1. README.md +37 -3
  2. patcheval_dataset.jsonl +0 -0
README.md CHANGED
@@ -1,3 +1,37 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## 👋 Overview
2
+ PatchEval is a benchmark designed to systematically evaluate LLMs and Agents in the task of automated vulnerability repair.
3
+ It includes 1,000 vulnerabilities sourced from CVEs reported between 2015 and 2025, covering 65 CWE categories across Go, JavaScript, and Python.
4
+ A subset of 230 CVEs is paired with Dockerized sandbox environments that enable runtime patch validation through Proof-of-Concept (PoC) and unit testing.
5
+
6
+ ## 📜 Data Instances Structure
7
+ Each vulnerability in the PatchEval dataset is a JSON object with the following structure:
8
+ ```
9
+ cve_id: (str) - The unique CVE identifier from NVD (e.g., CVE-2024-42005).
10
+ cve_description: (str) - The official description of the CVE from NVD.
11
+ cwe_info: (dict) - A dictionary containing details about the associated Common Weakness Enumeration (CWE).
12
+ repo: (str) - The URL of the GitHub repository.
13
+ patch_url: (list[str]) - A list of URLs on GitHub.
14
+ programing_language: (str) - The primary programming language of the vulnerable code.
15
+ vul_func: (list[dict]) - A list of vulnerable code snippet.
16
+ fix_func: (list[dict]) - A list of fixed code snippet.
17
+ vul_patch: (str) - The patch diff of the CVE.
18
+ poc_test_cmd: (str) - The command to execute the Proof-of-Concept (PoC) test within the provided Docker environment. A null value indicates that no PoC environment is available.
19
+ unit_test_cmd: (str) - The command to execute the unit test within the provided Docker environment. A null value indicates that no unit test is available.
20
+ ```
21
+
22
+ ## 📖 Citation
23
+ If you find PatchEval useful for your research and applications, feel free to give us a star ⭐ or cite us using:
24
+ ```bibtex
25
+ @misc{wei2025patcheval,
26
+ title={PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilities},
27
+ 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},
28
+ year={2025},
29
+ eprint={2511.11019},
30
+ archivePrefix={arXiv},
31
+ primaryClass={cs.CR},
32
+ url={https://arxiv.org/abs/2511.11019},
33
+ }
34
+ ```
35
+
36
+ ## ✍️ License
37
+ This project is licensed under the Apache License 2.0.
patcheval_dataset.jsonl ADDED
The diff for this file is too large to render. See raw diff