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
Affects llama.cppSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium.
Data as of 28 Oct 2026, 22:28 UTC
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
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10llama.cpppkg:deb/ubuntu/llama.cpp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSllama.cpppkg:deb/ubuntu/llama.cpp?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-58399 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-58399 (opens in a new tab)
- github.com/cveproject/cvelistv5/tree/main/cves/2024/58xxx/cve-2024-58399.json (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/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d (opens in a new tab)
- 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/releases/tag/b2731 (opens in a new tab)
- nvd.nist.gov/vuln/detail/cve-2024-58399 (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)