CVE-2024-58400
JSON

8.8high

llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs

Severity
8.8high CVSS:4.0 by VulnCheck
Exploit likelihood
0.42% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.

Affected

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

All scores

VulnCheck8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Classification

CWE-129

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.

NVD (es)

llama.cpp versiones anteriores a b3701 contiene una vulnerabilidad de lectura fuera de límites en llama_decode_internal y llama_encode_internal que permite a atacantes remotos no autenticados leer memoria suministrando IDs de token no validados. Los atacantes pueden enviar prompts de matrices de enteros al endpoint /completion del servidor llama?server con IDs fuera del rango 0 a n_vocab para leer la memoria de incrustaciones fuera de límites o provocar el bloqueo del proceso.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-58400 changed 2026-10-27CVE Terms of Use
NVDCVE-2024-58400 changed 2026-10-27Public domain