ZDI-26-976: Heap‑Based Buffer Overflow in llama.cpp GGUF Parser (CVE‑2026‑126975) Enables Remote Code Execution
What It Is — The Zero Day Initiative (ZDI) disclosed a critical flaw (CVE‑2026‑126975) in the open‑source LLM inference engine llama.cpp. The vulnerability resides in the parser for GGUF model files. When a GGUF file is loaded, the code fails to validate the length of a user‑supplied field before copying it into a heap‑allocated buffer. An attacker who can convince a victim to open a malicious GGUF file—or to visit a web page that triggers automatic loading of such a file—can cause a heap‑based buffer overflow. Successful exploitation grants the attacker arbitrary code execution in the context of the llama.cpp process, with full user‑level privileges. The CVSS vector is AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, yielding a base score of 7.8 (High).
The flaw was reported to the project maintainers on 28 Oct 2026. The maintainers responded quickly, publishing a patch on 13 Nov 2026 (GitHub PR #31336). The advisory was publicly released the same day, and the ZDI entry was updated to reflect the fix. No public exploitation has been observed, and the project’s maintainers have not reported any incidents in the wild.
Affected Products — The vulnerability is present in all versions of the llama.cpp repository that include the GGUF parser prior to the 13 Nov 2026 patch. Because llama.cpp is a library rather than a commercial product, any downstream application that embeds the library and loads GGUF files is potentially vulnerable.
Why It Matters for Trust & Control Assurance — This issue tests the Vulnerability Management control objective: organizations must have a process to discover, assess, and remediate software flaws promptly. Demonstrating timely patch adoption maps to a single control that satisfies many frameworks (e.g., NIST CSF 2.0, ISO 27001, SOC 2).
Recommended Actions —
- Identify any internal services, AI pipelines, or third‑party tools that embed llama.cpp and load GGUF models.
- Verify the version of llama.cpp in use; if it predates the 13 Nov 2026 commit, upgrade immediately to the patched release.
- Implement a monitoring rule for unexpected file loads or process launches of llama.cpp binaries.
- Document the remediation in your vulnerability‑management system to provide audit evidence of timely response.
Source: ZDI Advisory