ZDI-26-954: llama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability
Summary
Zero Day Initiative (ZDI) has published security advisory ZDI-26-954 regarding a Remote Code Execution (RCE) vulnerability in llama.cpp, tracked as CVE-2026-126976 with a CVSS score of 7.0. The vulnerability is caused by an integer overflow when parsing audio multimodal projector GGUF files. Successful exploitation requires user interaction, specifically that the target opens a malicious file.
Affected Products
- llama.cpp
Technical Details
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 lead to an integer overflow prior to allocating a buffer. The CVSS v3 vector string for this vulnerability is AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
Impact
Remote attackers can leverage this vulnerability to execute arbitrary code in the context of the current process on affected installations of llama.cpp, provided a user opens a maliciously crafted file.
Mitigation
- Update llama.cpp installations to the latest commit/version that addresses this issue.
- Official fix link: https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606
- Exercise caution and avoid opening GGUF files obtained from untrusted or unknown sources.
References
- CVE-2026-126976
- ZDI-26-954
- https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.