llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to
Affects llama.cppSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium : upgrade to b2731 when convenient.
Data as of 27 Oct 2026, 04:17 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 |
|---|---|---|
GitHubggml-org/llama.cpppkg:github/ggml-org/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
Users should avoid loading untrusted or crafted GGUF model files to prevent exploitation.
Description
An out-of-bounds read vulnerability exists in llama.cpp before commit b2731 within the llama_model_loader component. This flaw allows attackers to craft GGUF model files with arbitrary 64-bit tensor offsets that cause the process to read memory outside the mapped model file. Exploitation can lead to process crashes or unintended memory disclosure by loading adjacent process memory as model weights.
References
- nvd.nist.gov/vuln/detail/CVE-2024-58399 (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/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)