Integer Overflow Vulnerability in llama.cpp by ggml
CVE-2026-116829
6.9MEDIUM
What is CVE-2026-116829?
An integer overflow vulnerability exists in the gguf_init_from_reader function of llama.cpp versions prior to b11301. This flaw allows attackers to bypass validation checks for tensor element counts by supplying shapes that, due to their size, wrap to zero during processing. As a result, attackers can create GGUF files containing excessively large tensor extents that cause the ggml_nbytes() function to overflow, leading to out-of-bounds memory access when buffers are created using these compromised byte counts. This situation poses a significant risk to system integrity and security.
Affected Version(s)
llama.cpp b10398
llama.cpp 0.1.0 < 0.6.0
References
CVSS V4
Score:
6.9
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Daniel Kuts (apach301)
Jeongwoo Lee
apach301
