CVE-2026-126975: llama.cpp - Heap-based Buffer Overflow
- Cve: CVE-2026-126975
- Name: llama.cpp - Heap-based Buffer Overflow
- Description: 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.
- Impact: Remote attackers can execute arbitrary code in the context of the current process, potentially leading to full system compromise.
- Remediation: Update to the latest version of llama.cpp.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Target must open a malicious GGUF file
- Labels source: securitycontext
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0027
- Epss percentile: 0.19253
- Assignee: [email protected]
- Published at: 2026-11-18T00:18:38Z
- Age in days: 6
- Modified at: 2026-11-18T18:19:04Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126975
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/ggml-org/llama.cpp/pull/31336 | nvd | |
| https://www.zerodayinitiative.com/advisories/ZDI-26-976/ | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ggml-org/llama.cpp | pull | yes | /v1/repositories/ggml-org/llama.cpp |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts