AI Stack Alert High CVE-2026-131833 For AI Eng, AppSec, SOC / IR, CISO AI-assisted
llama.cpp GGUF parsing heap buffer overflow in set_swa_pattern allows code execution (CVE-2026-131833)
A heap-based buffer overflow exists in llama.cpp's parsing of GGUF files. The flaw results from missing validation of user-supplied data length before it is copied to a fixed-length heap buffer. Successful exploitation allows arbitrary code execution in the context of the current process, and user interaction is required.
Why it matters
Any organization running affected llama.cpp installations that load GGUF model files is exposed. An attacker who gets a user to open a malicious file or visit a malicious page could run code with that process's privileges.
Do this
- Update llama.cpp to a build that includes the fix in upstream pull request 26051.
- Inventory llama.cpp deployments, including developer workstations and inference servers, and confirm their versions.
- Restrict GGUF model files to trusted sources and verify provenance before loading them.
- Run llama.cpp services with least privilege and isolate them from sensitive data and networks until patched.
Exploit Clock
No signals yet
- No exploitation signals yet
Signals
- NoCISA KEV
- 36/100Priority
- 80%Confidence
Evidence
“The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length, heap-based buffer.”
“llama.cpp has issued an update to correct this vulnerability.”
Sources
Affected / related
llama.cpp, llama.cpp, GGUF file parsing heap-based buffer overflow
Published 2026-11-24 06:00 UTC · updated 2026-11-24 20:06 UTC · AI-assisted summary, checked against quoted sources · How we score