Integer Overflow Vulnerability in llama.cpp by ggml-org
CVE-2026-116840
6.9MEDIUM
What is CVE-2026-116840?
An integer overflow vulnerability exists in the gguf_init_from_reader function of llama.cpp, prior to version b11275. This flaw allows attackers to exploit crafted GGUF files, leading to a bypass of the size verification intended to prevent processing errors. By supplying a specially crafted tensor size that pads to zero, this vulnerability can result in an undersized data blob. Consequently, this may cause out-of-bounds read operations when consumers attempt to access the improperly allocated memory, potentially leading to information leakage or application crashes.
Affected Version(s)
llama.cpp b5854
llama.cpp 0.1.0 < 0.6.0
References
CVSS V4
Score:
6.9
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Xiang Chen (x14ngch3n)
Jeongwoo Lee
x14ngch3n
