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 package | Versions | Reported by |
|---|---|---|
| ggml-org llama.cpp | before b3701 | CVE List |
All scores
| VulnCheck | 8.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58400 changed 2026-10-27 | CVE Terms of Use |
| NVD | CVE-2024-58400 changed 2026-10-27 | Public domain |