Este artigo está disponível apenas em inglês.
By UNST33R
Three RCEs in the GGUF parser everyone loads community weights with: llama.cpp CVE-2026-126974/75/76
On November 13 the Zero Day Initiative coordinated the release of three llama.cpp memory-corruption advisories, published by NVD on November 18 as CVE-2026-126974, CVE-2026-126975, and CVE-2026-126976. All three execute attacker code when the target loads a malicious GGUF file, which is the exact action every local red-team inference box performs on every community quant it pulls. The full advisory timeline, the code paths, fresh Hugging Face download numbers that raise the stakes, and a five-layer mitigation stack.
On November 18, NVD published a trio of llama.cpp vulnerabilities that the Zero Day Initiative had coordinated for release five days earlier. All three are memory-corruption bugs in the parsing of GGUF files, the container format that open-weight models ship in, and all three let attacker-supplied input execute code in the process that opened the file (CVE-2026-126974, CVE-2026-126975, CVE-2026-126976, NVD records dated 2026-11-18, status Awaiting Analysis). The CVSS vectors read AV:L/AC:L/PR:N/UI:R, which translates to a plain operational statement: anyone who gets your inference box to open a crafted GGUF runs code in that process, with no authentication required.
That is the same box holding your agent framework, your API keys in environment variables, and your engagement tooling. This site has covered the GGUF supply chain from the quantization-audit and provenance-verification angles; these three advisories close the loop from the consumer side, because they make the act of loading a community file the vulnerability itself.
The three advisories, side by side
| Field | CVE-2026-126974 | CVE-2026-126975 | CVE-2026-126976 |
|---|---|---|---|
| ZDI advisory | ZDI-26-975 | ZDI-26-976 | ZDI-26-954 |
| Flaw | Integer overflow before a memory write in GGUF parsing | Heap buffer overflow from unchecked copy length of user-supplied data | Integer overflow before buffer allocation in audio multimodal projector GGUF parsing |
| CWE | CWE-190 | CWE-122 | CWE-190 |
| CVSS 3.0 | 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | 7.0 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Reported to vendor | 2026-10-28 | 2026-10-28 | 2026-06-18 |
| Coordinated release | 2026-11-13 | 2026-11-13 | 2026-11-13 |
| Researcher credit | Adam Bedard | lucasfutures | zent |
| Fix reference | PR #31336 | PR #31336 | Commit e2e7a9b2 |
Two timeline facts deserve attention before the technical detail. The two October reports went from disclosure to coordinated release in sixteen days, which is fast for an all-volunteer maintainership and worth acknowledging. The third flaw, in the multimodal audio projector path, was reported on June 18 and sat in coordinated disclosure for almost five months. During that window the GGUF ecosystem multiplied its shelf count, so every quant pulled by every local harness in that period ran a parser with a known, privately held memory-corruption bug in the audio path. Coordinated disclosure worked as designed; the exposure arithmetic is still uncomfortable.
Why the parsing path is the attack surface
GGUF parsing runs before any inference happens. The loader reads header fields, metadata key-value pairs, and tensor descriptors straight from the file, allocates buffers based on the dimensions it finds there, and copies payload data into them. That is the classic pattern behind file-format exploitability: lengths and offsets from the file control allocation sizes and copy amounts. An integer overflow before an allocation (CWE-190) undersizes a buffer; an unchecked copy length (CWE-122) then writes past it. The NVD summaries state the consequence in one line for each: an attacker can execute arbitrary code in the context of the current process.
The trigger condition matters as much as the primitive. The ZDI text for all three says user interaction is required, in that the target must visit a malicious page or open a malicious file. In a red-team workflow, opening model files is the routine action, automated in scripts. Consider the realistic chains:
- Shelf swap. A repository you pinned gets its weights replaced or a lookalike re-upload appears under a similar name. Our monitoring logged four GGUF shelves returning 401 in the same window this month, which is the visible churn of repos being pulled or gated; the day-four availability telemetry covers that wave. A 401 you notice. A same-name content swap you do not.
- Quant re-wrap typosquat. Unknown accounts repackaging popular models at new quant sizes, a pattern the quantization audit documented across the uncensored shelf. The repack step is exactly where a crafted tensor table would ride in.
- Malicious page path. The advisory text for two of the three mentions visiting a malicious page. Local inference UIs and notebook flows that fetch model files from user-supplied URLs turn a link into a file-open.
Download gravity makes this an ecosystem problem, not a corner case
Numbers from the Hugging Face API, captured November 21:
| Repository | Role | Downloads | Likes | Created |
|---|---|---|---|---|
| deepseek-ai/DeepSeek-V4.1-Flash-1017 | Guardrailed base | 505,387 | 6,045 | 2026-10-17 |
| AtomicChat/LFM3-1.7B-Uncensored-GGUF | Uncensored GGUF derivative | 173,201 | 346 | 2026-10-27 |
| AngelSlim/Hy4-flash-GGUF | Community quant re-wrap | 75,614 | 119 | 2026-11-16 |
| alesha-pro/Hy4-flash-Uncensored-GGUF | Uncensored derivative, 2 days old | 2,466 | 8 | 2026-11-19 |
The last row is the signal. A two-day-old repository from an unknown account, carrying an uncensored-labeled derivative of a model that launched on November 18, already has 2,466 downloads. The attribution wave and the ecosystem numbers pieces covered why this velocity exists: reduced-refusal variants circulate as community GGUFs because hosted options are scarce. The security consequence is that a large population now opens files from freshly created, unvetted accounts, in a parser that just took three memory-corruption fixes in one week.
The mitigation stack
Five layers, cheapest first.
1. Pin the parser above the fix line. The fixes landed with PR #31336 and commit e2e7a9b2, coordinated on November 13. If you build llama.cpp from source, build from a commit at or above that line and record the hash. If you run a downstream app that bundles its own llama.cpp build (LM Studio and friends), check its bundled version before pointing it at community shelves; the local-models hardening guide walks through where those builds live. This was already the discipline the previous mmproj advisory demanded; three more CVEs in the same quarter turn it into a standing policy.
2. Pin the file, not just the parser. Record the repository revision, file SHA-256, and uploader account at pull time, and fail the pipeline on any change. A shelf swap or re-upload then surfaces as a hash mismatch instead of a silent re-parse. The provenance verification protocol provides the template.
3. Treat GGUF as hostile input, the way you treat PDFs. Parse and load inside a container or VM with no network egress, no mounted secrets, and no agent credentials in the environment. The blast radius of a parser bug then ends at the sandbox boundary. This costs one afternoon of setup and removes the entire class of process-context compromise described in the advisories.
4. Fuzz your own loader configuration. llama.cpp ships with a fuzzer harness; a weekend run with a corpus of malformed GGUFs (oversized tensor dimensions, offset pairs that wrap, metadata lengths near overflow boundaries) verifies that your specific build inherits the fixes. Add the corpus to CI as a regression gate, the same philosophy as the quality-cost regression gate applied to weights.
5. Route public-corpus bulk work away from local parsers entirely. Bulk triage over public vulnerability data, synthetic corpora, and harvested samples needs no local weights at all. An OpenAI-compatible hosted endpoint does the parsing server-side and returns tokens:
curl https://api.unst33r.si/v1/chat/completions \
-H "Authorization: Bearer $UNST33R_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "unst33r-deepseek",
"messages": [
{"role": "system", "content": "Triage CVE summaries for exploit primitives. Output JSON only."},
{"role": "user", "content": "<public advisory text>"}
]
}'
The DeepSeek tier runs $0.15 input / $0.5625 output per million tokens with tool calling, which prices a ten-thousand-item triage sweep at well under a typical local harness's idle cost, before counting the sandbox you no longer need for that class of work. For interactive exploit development where you keep weights local, layers 1 through 4 carry the load.
What a malicious GGUF attempt looks like in logs
None of the advisories publish proof-of-concept files, which is proper for coordinated releases at this severity. The structure of the bugs tells you what to alert on anyway: tensor dimension products that overflow 32-bit arithmetic, metadata field lengths inconsistent with file size, and allocation attempts several orders of magnitude larger than the file itself. A loader that logs parsed header values before allocating gives you cheap detection lines for all three. If your loading pipeline has no such logging, that is the first patch to write, because it also catches corrupted-but-benign downloads that currently fail as mysterious segfaults.
The pattern to carry forward
Model supply-chain security keeps converging on file-format security. The weights pipeline is a download-trust-parse-execute chain, and the parse step just produced three RCEs in the reference implementation within one advisory cycle. Vendors of hosted endpoints internalize that risk inside their serving stack; local operators inherit it directly. Either way, the response is identical to every other untrusted-input format you already handle: version floor, hash pinning, sandboxed parsing, fuzz coverage, and a routing decision about which workloads need to touch raw files at all. Three CVEs made the argument; the mitigation stack above is the answer that works next quarter too.