Metraipolis › archive › dc_3227fc1e77c3
Newer and Bigger, but Safer? A Longitudinal Study of the Functionality-Security Gap in LLM-Generated Code — arXiv:2610.08240
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.08240
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T11:35:27.454Z
- SHA-256 of the archived text
dcd65272b49578a87008f6bc3008ef59e5fcd8bc11332c327754afca8725c8c6- Stable URL of this page
https://metraipolis.com/documento/dc_3227fc1e77c3
How to cite
Newer and Bigger, but Safer? A Longitudinal Study of the Functionality-Security Gap in LLM-Generated Code — arXiv:2610.08240 — arXiv (en), https://arxiv.org/abs/2610.08240 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_3227fc1e77c3 (Metraipolis archive dc_3227fc1e77c3, sha256 dcd65272b49578a87008f6bc3008ef59e5fcd8bc11332c327754afca8725c8c6)
BibTeX
@misc{dc3227fc1e77c3,
title = {Newer and Bigger, but Safer? A Longitudinal Study of the Functionality-Security Gap in LLM-Generated Code — arXiv:2610.08240},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.08240},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_3227fc1e77c3; sha256 dcd65272b49578a87008f6bc3008ef59e5fcd8bc11332c327754afca8725c8c6},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.08240. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large Language Models (LLMs) are widely used to generate code. Although their functional plausibility keeps improving, the generated code often contains security vulnerabilities. The functionality-security gap captures code that passes functional tests but fails security tests. A recent longitudinal study of three model families concluded that LLMs become smarter but not safer, with the only considered open-weight family stagnating. Whether this holds for other (open-weight) families and particularly for compact models remains open. We present a longitudinal study of the gap across 32 LLMs from seven model families (five open-weight), covering three successive releases per family in flagship and compact variants. Using CWEval with 119 tasks in five programming languages and 31 CWEs, we compare trajectories across families, model sizes, and languages. Newer models do become safer in absolute terms, although no family closes the gap. Unlike prior work, we find that openness does not separate the families: every considered open-weight family narrows the gap significantly, while Gemini 3.1 Pro keeps a gap as wide as the one reported for Llama. Compact models usually produce less secure code than their flagship counterparts, with notable exceptions (e.g., Gemini 3.7 Flash). At the CWE level, we confirm persistent weaknesses such as log injection (CWE-117) and HTTP response splitting (CWE-113) and regressions in the newest proprietary models on memory and integer weaknesses, and show that the same CWE carries very different risk across languages. From these results, we derive implications for LLM vendors, researchers, and developers. In particular, developers should assume neither that upgrades improve security nor that proprietary models are more secure; they should rerun security checks after each model change and provide secure APIs in the model's context. Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2610.08240 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T11:18:39.726Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).