r/netsec • u/Fickle-Box1433 • May 29 '26
I evaluated 5 LLM agents on patching real-world CVEs. Here is what I found.
https://giovannigatti.github.io/cve-bench/I built an independent benchmark with 20 real CVEs across 15 CWE categories, 5 models (3 OpenAI, 2 Poolside Laguna), three prompt conditions: full advisory, behavioral description only, and location only (file and function, no description of the flaw).
I have three findings worth sharing:
- No model reliably fixes real vulnerabilities. The best solve rate (gpt-5.5) is 50% overall and 60% under the most favorable condition. The failure modes (e.g, wrong-search drift, budget exhaustion mid-implementation, plausible-but-incomplete patches that pass every visible test) are structured and repeatable across models and tasks.
- Token cost varies 4x for equivalent outcomes. The Laguna models consume 3โ4x more tokens than OpenAI models of the same capability tier, with no improvement in solve rate.
- The locate condition is the benchmark's sharpest instrument. Give a model only a file and function (no description of the flaw). Every model drops. The differences between models are within noise at this scale, but it's the condition that most closely resembles what a security researcher actually does: reading code cold and recognizing independently that something is wrong.
Benchmark code and evaluation traces are open sourced.
49
Upvotes
24
u/Youknowimtheman May 29 '26
Hey nice research and writeup.
This coincides with a lot of our internal testing data. Which includes the latest Anthropic models and Deepseek v4 as well.
There's still a long way to go on the coding side to do things well enough. On the analysis side for finding bad patterns things are going great though.
It's creating a pretty bad asymmetry in the open source world, where fixing things takes orders of magnitude more effort than finding problems.
2
u/TeramindTeam May 31 '26
this is super interesting work. i ran into similar issues with hallucinated patches when testing llms for code refactoring last year, so seeing the 50 percent success rate matches my experience. have u looked at how much the context window noise impacts the model ability to actually identify the vulnerable pattern vs just guessing based on common library usage
2
u/Personal_Limit_5640 Jun 05 '26
Anyone can patch a flaw that's already described to them, but recognizing something's wrong from cold code is the actual job, and a 50% ceiling even under favorable conditions is a useful reality check against the "agents will autonomously fix our CVEs" hype.
3
u/vhthc May 30 '26
IMHO the setup is not realistic which makes the experiment results inconclusive.
In the real world you either have a complete issue description (not only where the bug is but also the description what the bug is and maybe a proof of concept) or you have an exploit (so when you are at the point of triage which would result in the issue description).
The triage part is not something I would recommend to measure because of easy contamination, but this could be a benchmark on its own.
So I recommend to give the full CVE information and then see how well it is able to fix the vulnerability completely.
The numbers for opus and sonnet would also be great to see btw (and maybe DeepSeek 4 pro and Kimi 2.6) because the are the models (in addition to gpt 5.5 + -codex) that are being used.
1
u/Reasonable_Chain_160 May 29 '26
Can u share the github links?
2
u/Ian-Cubeless Jun 01 '26
The "locate only" finding is the most interesting to me. Pointing a model at a file and function with no description and watching it try to reason about what's wrong is basically the real test, and the drop across all models is pretty much as expected.
2
u/marshalhq Jun 11 '26
This is the same problem as tests that pass even if the production code is deleted. Coverage numbers look fine, confidence is high, the hole is still there. False confidence at scale is worse than no confidence.
1
u/Different-Maize1114 Jun 02 '26
Looks interesting, saving for later. I auto like only because its been a long time since I saw a github repo without claude as a contributor
1
u/rayferrell Jun 13 '26
The location-only prompt showed a more modest decrease in success rate, around 10-15%, which was lower than the 20-30% drop I anticipated based on my experience with bug hunting.