Skip to content
HighVulnerabilityLLM-specific

ZDI-26-1075: llama.cpp GGUF File Parsing set_swa_pattern Heap-based Buffer Overflow Remote Code Execution Vulnerability

Published
Record updated
View JSON

Summary

ZDI-26-1075 describes a heap-based buffer overflow in llama.cpp's parsing of GGUF files, tracked as CVE-2026-131833 and rated CVSS 7.8 by ZDI. The flaw stems from copying user-supplied data into a fixed-length heap buffer without validating its length, and remote attackers can exploit it to execute arbitrary code in the context of the current process. Exploitation requires the target to visit a malicious page or open a malicious file.

Mitigation

llama.cpp has issued an update to correct this vulnerability. More details are at https://github.com/ggml-org/llama.cpp/pull/26051.