Buffer overflow in Llama.cpp
CVE-2026-126975
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.003 · 21.6th percentile
- Published
- 2026-11-18
llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the parsing of GGUF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-34558.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.003, 21.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Llama.cpp — versions b11160 (70c4e1582)
Weakness classification (CWE)
References
- www.zerodayinitiative.com/advisories/ZDI-26-976/ (x_research-advisory)
- github.com/ggml-org/llama.cpp/pull/31336 (vendor-advisory)