What matters in AI.

Subscribe

Open models tell fixed code from flawed code no better than chance

Commercial models find the line with the fault, but their edge in prediction of a result disappears on newer vulnerabilities.

Researchers tested if large language models that find software vulnerabilities understand them, or only get good scores on benchmarks. They used 515 C and C++ functions from the BigVul and PrimeVul datasets. They proved each flaw with a working exploit. They also used 195 new vulnerabilities that were published after the training cutoffs of the models.

How it works

For each function, the team found the line where the fault occurs. Five tests went from telling flawed code from fixed code to prediction of a run. Each test has a simple baseline that needs no understanding, for example a rule that picks lines with risky calls.

The results

  • Open weight models tell flawed and fixed code no better than chance.
  • Commercial models identify many fixed versions as vulnerable.
  • Commercial models find the fault better than a keyword rule.
  • On newer vulnerabilities, the prediction advantage disappears. Fault location continues to work.

What is not known

The abstract gives no scores and does not name the models. The test covers C and C++ code only.

Insight: Finding and repair of flaws with AI lack proof

On 9 October 2026, a test of 322 bug fixes that an LLM wrote found that 14.6% to 49.7% of the fixes removed the bug, by agent. This paper finds that detectors mislabel fixed code. The two sides of the security loop seem weak, . A person holds the last check. Vendors that show proof on new flaws can get more trust.

Sources

  1. Right Verdict, Right Reason? An Execution-Grounded Study of Whether LLM Vulnerability Detectors Understand Vulnerabilitiesarxiv.org
AI MATTER · NEWS · AI MATTER · NEWS ·24 NOV2026

Posted

Tags

Learn the terms in this story

Guides for this story

More in Research

All Research news