# CVE-2024-58399: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-27T00:33:56.695Z
- Modified: 2026-11-02T19:17:49.023Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: from b1046 before b2731

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://github.com/ggml-org/llama.cpp/issues/6774> (issue-tracking)
- <https://github.com/ggml-org/llama.cpp/pull/6885> (issue-tracking, patch)
- <https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d> (patch)
- <https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004> (technical-description)
- <https://github.com/ggml-org/llama.cpp/releases/tag/b2731> (release-notes)
- <https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-58399](https://www.cve.org/CVERecord?id=CVE-2024-58399), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2024-58399](https://nvd.nist.gov/vuln/detail/CVE-2024-58399), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2024-58399 · Whole record: https://cve.day/CVE-2024-58399.json · Rebuilt by cve.day 2026-11-25T22:58:53.095Z
