A GGUF model file is often treated as a passive bundle of weights and metadata, but llama.cpp must parse its fields through native memory-handling code before inference can start. ZDI-26-975 reports that crafted input can trigger an integer overflow before a write, which may permit arbitrary code execution with the privileges of the process that opens the…
Inspect the ClaimsCase · DiggingBeagle record
Opening a malicious GGUF model could cross into llama.cpp process memory
ZDI disclosed CVE-2026-126974, a GGUF parser integer overflow before a memory write. The attacker needs the target to load malicious model data, so the advisory’s remote attacker description does not make this a zero-click server API exploit.
Published by DiggingBeagle:
CVE-2026-126974, ZDI-26-975, malicious GGUF file opened by a vulnerable llama.cpp installation; advisory published November 13, 2026.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- not established
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
Coordinated vulnerability advisory establishes a specific parser fault and upstream fix, not exploit prevalence or confirmed field execution.
Assessed Nov 16, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-LLAMACPP-01 · CLM-LLAMACPP-02 · ZDI-26-975: llama.cpp GGUF integer-overflow advisory
At a glance
A model file is executable-adjacent native input, not trusted documentation. Here exploitation requires an attacker-controlled malformed GGUF artifact to reach an affected loader through a user or workflow that opens it; there is no evidence of unauthenticated inference-endpoint compromise. If triggered, the memory corruption would occur before normal…
Read the implicationsNo in-the-wild exploitation or malicious model distribution confirmed by the advisory. The first fixed tagged release is not established here. The linked change includes multiple bounds checks; only the GGUF parser condition is assigned this CVE.
Limits and uncertaintyFull account
A GGUF model file is often treated as a passive bundle of weights and metadata, but llama.cpp must parse its fields through native memory-handling code before inference can start. ZDI-26-975 reports that crafted input can trigger an integer overflow before a write, which may permit arbitrary code execution with the privileges of the process that opens the file. The CVSS vector includes local attack context and required user interaction; an attacker must get an operator or automated model-fetch workflow to open the malicious artifact.
That changes the trust boundary of model distribution. A checksum proves a file is unchanged from a particular origin, not that the origin supplied safe bytes; a familiar model name or repository card is not a native parser sandbox. A model-hosting node or developer workstation running a vulnerable loader can therefore cross from lower-trust artifact metadata into host process memory during installation, before any model safety rules or inference ACLs run.
ZDI linked a project patch correcting relevant bounds checks. The adjacent upstream change also addressed multimodal position-index loops, but those edits should not automatically be attributed to the same CVE without narrower evidence. We do not have a confirmed first-fixed release tag, in-the-wild malicious checkpoint or reproducible field exploitation. Administrators should pin a build containing the correction, isolate model-file parsing from secrets and networks, and refuse unverified GGUF artifacts until they pass sandboxed parsing and provenance review.
Mechanism and trust boundary
- 01
Starting access and objective
An attacker controls a GGUF artifact or influences which model checkpoint an operator or automation opens.
Boundary: attacker or evaluator precondition
- 02
Trust or execution boundary
Native GGUF metadata parsing reaches integer arithmetic and a subsequent memory write without the required bounds checks.
Boundary: untrusted material and acquired authority
- 03
Observed result and limit
ZDI reports potential code execution in the loader process; no actual compromised host or malicious public model is established.
Boundary: measured effect and evidentiary limit
Claims & evidence
CLM-LLAMACPP-01ZDI-26-975 identifies an integer overflow before a GGUF parser memory write that can potentially lead to arbitrary code execution when a malicious model artifact is opened.supported
Basis: reported finding
- supportsZDI-26-975: llama.cpp GGUF integer-overflow advisoryprimary disclosure
Vulnerability Details, CVE-2026-126974
CLM-LLAMACPP-02The advisory requires the target to open a malicious page or file and links a llama.cpp upstream update; it does not identify an exploited production incident.supported
Basis: reported finding
- supportsZDI-26-975: llama.cpp GGUF integer-overflow advisoryprimary disclosure
Vulnerability Details and Additional Details
CLM-ENR253-LLAMACPP-GGUF-PARSER-INTEGER-OVERFLOWZDI-26-975 identifies CVE-2026-126974 as an integer overflow before a GGUF parser memory write and assigns CVSS 7.8 with user interaction required to open a malicious file; the advisory records reporting on October 28 and coordinated disclosure on November 13, 2026.supported
Basis: reported finding
- supportsZDI-26-975: llama.cpp GGUF integer-overflow advisoryprimary disclosure
ZDI-26-975, Vulnerability Details, CVSS score and Disclosure Timeline
Implications
A model file is executable-adjacent native input, not trusted documentation. Here exploitation requires an attacker-controlled malformed GGUF artifact to reach an affected loader through a user or workflow that opens it; there is no evidence of unauthenticated inference-endpoint compromise. If triggered, the memory corruption would occur before normal prompt safety or tool policy has any opportunity to intervene. Constrain model provenance and download permissions, inspect artifacts in isolated loaders, patch the affected parser, and treat the ZDI severity score as potential impact rather than evidence of a real victim.
Controls and mitigations
- Update to a llama.cpp build that demonstrably includes the GGUF bounds fix and verify its commit/release provenance.
- Load untrusted models in a tightly permissioned process without host secrets, privileged Docker mounts or unrestricted outbound access.
- Scan model-file provenance and use parser regression tests under memory sanitizers; a content hash alone is not a security verdict.
Unknowns and contradictions
- No in-the-wild exploitation or malicious model distribution confirmed by the advisory.
- The first fixed tagged release is not established here.
- The linked change includes multiple bounds checks; only the GGUF parser condition is assigned this CVE.
Sources and citation
Material revision history
- Nov 16, 2026 · Published version · first publication · revision 254