News · DiggingBeagle record

A malicious GGUF file could compromise the process before llama.cpp generates a token

ZDI disclosed an integer-overflow issue in model-file parsing. Opening an attacker-supplied artifact is the prerequisite; the advisory does not establish unauthenticated remote exploitation over an inference API.

Published
Nov 16, 2026

The report

Installing a model involves native parsing before the first inference response. The Zero Day Initiative advisory identifies CVE-2026-126974 in llama.cpp GGUF loading, where integer arithmetic can overflow before a memory write. A crafted model file could thereby produce memory corruption with potentially severe process consequences.

Model artifact, not user prompt

The documented entry point is the local opening of untrusted GGUF bytes. It is not a reported prompt injection, not a demonstration that ordinary remote inference requests reach this parser and not evidence of a malicious model distributed to users. The reported CVSS vector includes local attack and user interaction requirements; those prerequisites belong beside the RCE characterization.

The Case reconstruction also distinguishes this CVE from other multimodal bounds-check work appearing near the same development branch. A shared patch discussion does not mean every corrected parser path has the same identifier or exploitability.

A safer artifact intake

Model loaders should process untrusted artifacts in a confined environment, with explicit artifact provenance and pinned loader versions. Regression coverage needs malformed GGUF allocation sizes and native sanitizers, not just model-response quality tests. Verification of the fixed commit in the installed build is still necessary; an upstream patch does not secure an unchanged deployment.

Research behind this