llama.cpp: nine ZDI flaws, eight triggered just by opening a malicious model file
TL;DR Zero Day Initiative published nine llama.cpp advisories on November 24. Eight are bugs in how model files are read: six can lead to code execution and two crash the program. All were fixed in mid-November, so an older build is only at risk when it loads a model file from an untrusted source.
In plain words: llama.cpp is the engine behind many tools that run AI models on your own computer. Researchers found nine bugs; eight of them can be triggered by a booby-trapped model file, before you even type a prompt. Updated versions fix all of them.
What happened
On November 24, Trend Micro’s Zero Day Initiative (ZDI) published nine advisories for llama.cpp (ZDI-26-1071 to ZDI-26-1079). Eight concern the code that reads GGUF model files:
- Six can lead to code execution (CVSS 7.8, CVE-2026-131828, 131832, 131833, 131834, 131835 and 131836): an integer overflow in the main GGUF parser, a heap overflow in
set_swa_pattern, and memory errors when loading multimodal projectors (the separate “mmproj” files that add vision or audio), including the GEMMA4A audio projector and the HunyuanVL and MiniCPM-V vision projectors. - Two crash the program (CVSS 5.5, CVE-2026-131830 and 131831), also in multimodal projector loading.
- The ninth, CVE-2026-131837 (CVSS 8.1), is the
llama-serversleep-mode bug we covered separately; it needs no file, only a network request.
All nine were fixed through pull requests merged by November 12. ZDI does not list a build number for each fix.
Who is affected
Anyone running a llama.cpp build from before mid-November, directly or inside another app that bundles it, who loads a GGUF or mmproj file from a source they have not verified. The file-based bugs need you (or a tool acting for you) to open the file; they do not work over the network on their own.
Why it matters
A model file is often treated as harmless data. These bugs show that a crafted file can attack the program that reads it, in the same week that poisoned GGUF models were found on Hugging Face. Vision and audio projector files, which people download separately and pay less attention to, hold most of the bugs.
What to do
- Update llama.cpp, or the app that bundles it, to a release from mid-November 2026 or later.
- Download models and mmproj files only from authors you trust, and compare each file’s SHA-256 with the official repository.
- If you must keep an old build, do not use it to open files you have not verified.
- If you run
llama-serverwith sleep mode on an older build, see our separate item on CVE-2026-131837.