CVE-2024-58399
llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-125 |
| Vendor | ggml-org |
| Product | llama.cpp |
| Published | Oct 27, 2026 |
Stay Ahead of the Next One
Get instant alerts for ggml-org llama.cpp
Be the first to know when new medium vulnerabilities affecting ggml-org llama.cpp are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Affected Versions
ggml-org / llama.cpp
b1046 < b2731
References
github.com: https://github.com/ggml-org/llama.cpp/issues/6774 github.com: https://github.com/ggml-org/llama.cpp/pull/6885 github.com: https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d github.com: https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004 github.com: https://github.com/ggml-org/llama.cpp/releases/tag/b2731 vulncheck.com: https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets
Credits
slaren ๐ Jeongwoo Lee slaren