CVE-2025-71439
JSON

6.8medium

llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info

Severity
6.8medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token IDs. Attackers can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, causing llama-cli or llama-server to read past id_to_token and crash.

Affected

Product or packageVersionsReported by
ggml-org llama.cppbefore b5649CVE List

All scores

VulnCheck6.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token IDs. Attackers can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, causing llama-cli or llama-server to read past id_to_token and crash.

NVD (es)

llama.cpp antes de b5649 contiene una vulnerabilidad de lectura fuera de los límites del heap en llama_vocab::impl::print_info() que permite a los atacantes bloquear la carga del modelo mediante IDs de tokens especiales de tamaño excesivo. Los atacantes pueden proporcionar un modelo GGUF manipulado con una matriz tokenizer.ggml.tokens corta, lo que hace que llama-cli o llama-server lean más allá de id_to_token y se bloqueen.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71439 changed 2026-11-05CVE Terms of Use
NVDCVE-2025-71439 changed 2026-11-05Public domain