CVE-2024-58399: ggml-org llama.cpp · Out-of-bounds Read
Affects ggml-org llama.cppSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to b2731 when convenient.
Data as of 27 Oct 2026, 01:27 UTC
- Patch
- Available – fixed in b2731
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade ggml-org llama.cpp to b2731.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ggml-orgllama.cpp | Affected
| Fixed in
|
GitHubllama.cpppkg:github/llama.cppOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to version b2731 or later, where this vulnerability has been fixed. No other mitigation or temporary workaround is indicated.
Description
An out-of-bounds read vulnerability exists in llama.cpp versions from b1046 up to but not including b2731. The flaw occurs in the llama_model_loader component when processing crafted GGUF model files with arbitrary 64-bit tensor offsets. This can cause the process to crash or read adjacent memory as model weights.
References
- github.com/ggml-org/llama.cpp/issues/6774 (opens in a new tab)
- github.com/ggml-org/llama.cpp/pull/6885 (opens in a new tab)
- github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d (opens in a new tab)
- github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp (opens in a new tab)
- github.com/ggml-org/llama.cpp/releases/tag/b2731 (opens in a new tab)
- vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets (opens in a new tab)