# CVE-2026-116840: llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-10-27T00:33:59.834Z
- Modified: 2026-10-27T15:59:46.587Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: from b5854 before b11275; from 0.1.0 before 0.6.0

## 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/26978> (issue-tracking)
- <https://github.com/ggml-org/llama.cpp/pull/26979> (issue-tracking, patch)
- <https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44> (patch)
- <https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795> (technical-description)
- <https://github.com/ggml-org/llama.cpp/releases/tag/b11275> (release-notes)
- <https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-116840 · Whole record: https://cve.day/CVE-2026-116840.json · Rebuilt by cve.day 2026-11-25T22:59:47.322Z
