CVE-2026-126976
llama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability.
Impact
llama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must open a malicious file. The specific flaw exists within the parsing of audio multimodal projector GGUF files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a buffer. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-30980.
An attacker can exploit this with local access to the system, without logging in, but a user has to do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Ggml-org | Llama.cpp | Version b8958 |
| Llama.cpp | Llama.cpp | Version b8958 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://www.zerodayinitiative.com/advisories/ZDI-26-954/
- https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606
- https://github.com/advisories/GHSA-mgp8-8cpj-8cjj
- https://nvd.nist.gov/vuln/detail/CVE-2026-126976
- https://www.zerodayinitiative.com/advisories/ZDI-26-954