Description
llama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying shapes whose product wraps to zero. Attackers can craft GGUF files with enormous tensor extents that overflow ggml_nbytes() and strides, causing out-of-bounds memory access when buffers are sized from wrapped byte counts.
References7
- github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L701
- github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02…
- github.com/ggml-org/llama.cpp/issues/29383
- github.com/ggml-org/llama.cpp/pull/29384
- github.com/ggml-org/llama.cpp/releases/tag/b11301
- www.vulncheck.com/advisories/llama-cpp-b10398-before-b11301-int…
- github.com/ggml-org/llama.cpp/issues/29383
Metrics
- CVSS 3.1
-
6.6
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - CVSS 4.0
-
6.9
MEDIUM
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 2 · as of 8 November 2026
- CWE
- CWE-190
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.