What’s Vulnerable › Vulnerabilities
CVE-2026-116840: llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-27 · updated 2026-10-27
- Weakness: CWE-190
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.
Affected products
- ggml-org llama.cpp: from b5854 before b11275; from 0.1.0 before 0.6.0 — fixed in b11275, 0.6.0
How to fix
Upgrade to a fixed version: ggml-org llama.cpp b11275, 0.6.0. Check the vendor advisory for mitigations.
References
- https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795
- https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44
- https://github.com/ggml-org/llama.cpp/issues/26978
- https://github.com/ggml-org/llama.cpp/pull/26979
- https://github.com/ggml-org/llama.cpp/releases/tag/b11275
- https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader
Get alerted when CVE-2026-116840 or the next vulnerability affects your stack