CVE-2024-58399
llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
- State
- Published
- Severity
- 6.9 Medium
- Published
- Oct 27, 2026
- Updated
- Oct 27, 2026
- Reserved
- Oct 27, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.1 Medium | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
Affected Products
| Product | Versions |
|---|---|
llama.cppggml-org |
|
References
- https://github.com/ggml-org/llama.cpp/issues/6774issue-tracking
- https://github.com/ggml-org/llama.cpp/pull/6885patchissue-tracking
- https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1dpatch
- https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004technical-description
- llama.cpp b2731 Release Notesrelease-notes
- VulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsetsthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.