PrimeVul
The benchmark’s paper hasn’t scored a model released after StarCoder 2 7B (February 2024). Labs report their own numbers for 2 newer models, such as Gemma 2 27B at 63%.
Models classify C and C++ functions as vulnerable or not, with a paired setting that pairs each vulnerable function with its patch.
228,800 safe and 6,968 vulnerable C and C++ functions over about 140 CWEs. Two labeling methods: ONEFUNC marks a function vulnerable only when the fixing commit touched that function alone, and NVDCHECK cross-references CVE text. The current release is v0.1 and no v2 exists. Published at ICSE 2025.
- Made by
- Columbia University and Google (Ding et al.)
- Released
- March 2024
- Kind
- Finding and exploiting real bugs
- Level
- Expert
- Scored
- Checked automatically
- Answers
- Multiple choice
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Items from
- Real work and use
- Refresh
- One fixed set
- Run by
- Anyone
- Strongest model tested
-
Gemma 2 27B #191 on the capability index
- Last in a system card
- February 2026
- Last model added
- February 2026
- Updated automatically
- No, from its paper
- Scores refreshed
- November 20th, 2026
In the authors’ words
In the context of the rising interest in code language models (code LMs) and vulnerability detection, we study the effectiveness of code LMs for detecting vulnerabilities. Our analysis reveals significant shortcomings in existing vulnerability datasets, including poor data quality, low label accuracy, and high duplication rates, leading to unreliable model performance in realistic vulnerability detection scenarios. Additionally, the evaluation methods used with these datasets are not representative of real-world vulnerability detection. To address these challenges, we introduce PrimeVul, a new dataset for training and evaluating code LMs for vulnerability detection. PrimeVul incorporates a novel set of data labeling techniques that achieve comparable label accuracy to human-verified benchmarks while significantly expanding the dataset. It also implements a rigorous data de-duplication and chronological data splitting strategy to mitigate data leakage issues, alongside introducing more realistic evaluation metrics and settings. This comprehensive approach aims to provide a more accurate assessment of code LMs' performance in real-world conditions. Evaluating code LMs on PrimeVul reveals that existing benchmarks significantly overestimate the performance of these models. For instance, a state-of-the-art 7B model scored 68.26% F1 on BigVul but only 3.09% F1 on PrimeVul. Attempts to improve performance through advanced training techniques and larger models like GPT-3.5 and GPT-4 were unsuccessful, with results akin to random guessing in the most stringent settings. These findings underscore the considerable gap between current capabilities and the practical requirements for deploying code LMs in security roles, highlighting the need for more innovative research in this domain.
Gemma 2 27B leads with 63%
Best score per model as labs report them in their own cards, drawn striped. Labs pick their own settings, so these compare less cleanly than independent runs.
StarCoder 2 7B leads with 97.1% across all independent runs
Best score per model across the benchmark’s paper, Epoch AI’s own runs and any board Epoch AI copied. Dotted bars are reruns by Epoch AI or another board, and each row names its source.
StarCoder 2 7B leads with 97.1%, claims included
Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model. Striped bars are claims, and dotted bars are reruns by Epoch AI or another board.
- 1
Gemma 2 27B 63%
- 2
Qwen3-Coder-Next 48.3%
Source: Labs’ model cards
Source: The PrimeVul paper
- 1
StarCoder 2 7B Fine-tuned on BigVul 97.1%
- 2
Gemma 2 27B 63%
- 3
Qwen3-Coder-Next 48.3%
Sources: The PrimeVul paper and labs’ model cards
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 63% | Jul 2024 | Lab model card | |
| 2 | | 48.3% | Feb 2026 | Lab model card |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | 97.1% | Fine-tuned on BigVul | Feb 2024 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | 97.1% | Fine-tuned on BigVul | Feb 2024 | Official leaderboard | |
| 2 | 63% | Jul 2024 | Lab model card | ||
| 3 | 48.3% | Feb 2026 | Lab model card |
The benchmark's paper has 5 entries, 1 of them models we track. Switch the scores above to rank them together.
Everything the board measures
The benchmark’s paper publishes 7 numbers for each entry: the headline score and 6 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Other measures
- F1 score
- Vulnerability detection score
- Precision on vulnerable code
- Precision on vulnerable functions
- Precision on vulnerable blocks
- Precision on vulnerable repositories
- Headline
- Headline score
- Other measures
- F1 score
- Vulnerability detection score
- Precision on vulnerable code
- Precision on vulnerable functions
- Precision on vulnerable blocks
- Precision on vulnerable repositories
- Headline
- Headline score
- Other measures
- F1 score
- Vulnerability detection score
- Precision on vulnerable code
- Precision on vulnerable functions
- Precision on vulnerable blocks
- Precision on vulnerable repositories
- Hugging Face
- not in our model list
StarCoder 2 7B on the official leaderboard passed 85% in February 2024
Models released before it came out already scored that high. All the scores we have, one dot each, so a model tested at several settings appears more than once.
Sources: Official PrimeVul leaderboard and labs’ model cards
Labs report it only in system cards
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark. Some system cards do, below.
2 system cards report it, from 2 labs
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| Feb 28, 2026 | | 48.3 | PrimeVul-Paired accuracy, greedy. F1 51.37, P-C 0.88, P-V 53.01, P-B 41.29, P-R 4.64 (Table 15) | Cyber risk |
| Jul 31, 2024 | | 63 | PrimeVul, accuracy (Table 20). PrimeVul Paired: 50% | Cyber risk |
More in Cybersecurity
- ExploitGym In use 869 real-vulnerability exploit-development tasks (userspace, V8, Linux kernel). Success means capturing a flag through the intended vulnerability. GPT-6 Astra 42.4%
- ExploitBench In use 41 recent V8 JavaScript-engine N-day vulnerabilities. Progress measured by 16 grader-verified capability flags across five tiers. GPT-6 Astra 100%
- ExploitBench - Internal Port In use Agents develop working exploits for recently disclosed vulnerabilities to limit contamination. Scored as arbitrary code execution success rate. GPT-6.2 Astra 53.5%
- Atomic Challenges In use Agents solve 22 skill-level offensive security challenges in vulnerability research, network attack simulation and evasion. Scored as challenges solved. GPT-6 Astra 90.9%
- MiMo Cyber Bench In use Agents do in-house cybersecurity tasks that add to public vulnerability reproduction and exploitation benchmarks. The report gives no task count or grading details. MiMo-V2.6 Pro 81.7%
- PatchBench (OpenAI) In use Models patch security flaws. Automated tests and model-based review check that each patch fixes the flaw, keeps the intended behavior and is ready to merge. GPT-6.2 Astra 79.7%
Data audit
All 8 checks pass. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 2 pass 3 notes
- Pass Independent runs Scores from the benchmark’s paper (5 entries) and system cards (2 scores).
- Pass Models scored 3 models we track, plus 4 other entries on its leaderboard.
- Note Newest score The newest came 9 months ago, in February 2026, for Qwen3-Coder-Next. That’s expected for a saturated test.
- Note Frontier models None of the top 10 has a score, which is fine for a retired test. The strongest tested is Gemma 2 27B (#191).
- Note Headroom Saturated. The best is 97.1%, past 85% since February 2024.
Leaderboard import 3 pass
- Pass Importer We read the board on arxiv.org: 2 rows for models we track and 4 other entries at the last read.
- Pass Last read November 20th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.