CVE-2024-58399
JSON

6.9medium

llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

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

Description

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

Affected

Product or packageVersionsReported by
ggml-org llama.cppfrom b1046 before b2731CVE List

All scores

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

Classification

CWE-125

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

What each source says

CVE List

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

NVD (es)

llama.cpp antes de la versión b2731 contiene una vulnerabilidad de lectura fuera de límites en llama_model_loader que permite a los atacantes leer memoria fuera del archivo de modelo mapeado mediante desplazamientos de tensor GGUF manipulados. Los atacantes pueden suministrar un archivo de modelo GGUF manipulado o truncado con desplazamientos de tensor de 64?bits arbitrarios para bloquear el proceso o cargar la memoria adyacente del proceso como pesos del modelo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-58399 changed 2026-11-02CVE Terms of Use
NVDCVE-2024-58399 changed 2026-11-02Public domain