CVE-2024-58399 json
llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
published 16d ago modified 9d ago also EUVD-2024-55826
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 1%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- ggml-org llama.cpp b2731
- github.com/ggml-org/llama.cpp@0ead1f1 commit
- github.com/ggml-org/llama.cpp#6885 pull request
- github.com/ggml-org/llama.cpp/releases/tag/b2731 release
Is CVE-2024-58399 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9d ago
Exploit prediction
0.12% chance of exploitation in the next 30 days, higher than 1% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
| CNA | 4.0 | 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- ggml-org llama.cpp
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/ggml-org/llama.cpp/pull/6885
patch, issue-tracking
-
github.com
/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d
patch
-
github.com
/ggml-org/llama.cpp/issues/6774
issue-tracking
-
github.com
/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004
technical-description
-
github.com
/ggml-org/llama.cpp/releases/tag/b2731
release-notes
-
vulncheck.com
/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets
third-party-advisory
Sources
- CVE List CVE-2024-58399
- NVD CVE-2024-58399
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.