CVE-2024-58399
published medium CVSS 4.0 · 6.9llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cppb1046 to < b2731 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | b1046 to < b2731 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-125 Out-of-bounds Read
References
6- https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004
- https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d
- https://github.com/ggml-org/llama.cpp/issues/6774
- https://github.com/ggml-org/llama.cpp/pull/6885
- llama.cpp b2731 Release Notes https://github.com/ggml-org/llama.cpp/releases/tag/b2731
- VulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets
Provider assertions
2VulnCheck · cna
llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c40368a7f9495a5ac739f597666c9c0711f8878c2170a1d775e0771eabcdc093
- Ingested
- 02 Nov 2026, 18:56:26 UTC
- Source record
- Official CVE record