Skip to content
EventPast event

Paper longitudinally evaluates code safety of 32 models

1 reports1 reporting sourcesLatest report

Start here

AI overview

A longitudinal study uses CWEval's 119 tasks, five programming languages, and 31 CWE categories to evaluate the functionality and security gaps of 32 LLMs across seven model families, spanning three consecutive generations of flagship and compact versions. Results show that new models are indeed safer in absolute terms, but no family eliminates the gap; unlike existing research, openness does not distinguish families—all examined open-weight families significantly narrow the gap, while Gemini 3.1 Pro's gap is as wide as previously reported for Llama. Compact models generally generate less secure code than flagship versions.

Generated by AI from reports · Updated 2026-10-19

Related research

This event's paper

Progress timeline

Oct 6
  1. Paper Tracker
    Study evaluates the functional and security gap of 32 LLMs: newer models are safer but none eliminate the gap

    A longitudinal study evaluated the functional and security gaps of 32 LLMs across seven model families over three consecutive generations, using CWEval's 119 tasks, five programming languages, and 31 CWE categories, comparing flagship and compact versions. Results show that newer models are indeed safer in absolute terms, but no family eliminates the gap; unlike prior work, openness does not distinguish families—all examined open-weight families significantly narrowed the gap, while Gemini 3.1 Pro's gap is as wide as previously reported for Llama. Compact models generally generate less secure code than flagship versions, with notable exceptions like Gemini 3.7 Flash. At the CWE level, weaknesses such as log injection (CWE-117) and HTTP response splitting (CWE-113) persist, the latest closed-source models show regressions in memory and integer weaknesses, and the risk of the same CWE varies greatly across languages. The authors therefore advise developers not to assume that upgrades improve security or that closed-source models are safer, to rerun security checks after each model change, and to provide secure APIs in the model context.