ZDI-26-1073: llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service Vulnerability
Summary
This advisory addresses an out-of-bounds read vulnerability in the multimodal projector GGUF file parsing mechanism of llama.cpp. Tracked as CVE-2026-131831 and ZDI-26-1073, this issue allows remote attackers to induce a denial-of-service (DoS) condition on affected installations by tricking a target into opening a crafted malicious file.
Affected Products
- llama.cpp (versions prior to the patch included in Pull Request #29276)
Technical Details
The flaw resides within the parsing component for multimodal projector GGUF files in llama.cpp. The vulnerability stems from insufficient validation of user-supplied input data, resulting in a read operation beyond the allocated buffer boundaries (out-of-bounds read). Exploitation requires user interaction, specifically convincing a user to open a maliciously prepared file. The vulnerability was reported by researcher zent and has been remediated by the vendor.
Impact
Successful exploitation of this flaw enables an attacker to cause an application crash, resulting in a denial-of-service (DoS) state on the target machine.
- Confidentiality: None — This flaw does not disclose sensitive information or memory contents to the attacker.
- Integrity: None — This flaw does not allow modification of system data or application state.
- Availability: High — Successful exploitation causes an unexpected application crash, severely disrupting availability.
Mitigation & Remediation Recommendations
- Update llama.cpp to the latest commit/release incorporating the fix from Pull Request #29276.
- Avoid opening GGUF model files received from untrusted or unknown sources.
- Run AI processing workloads within restricted environments following the principle of least privilege.
References
- Zero Day Initiative Advisory Source Link ZDI-26-1073 — http://www.zerodayinitiative.com/advisories/ZDI-26-1073/
- llama.cpp Fix Pull Request (GitHub PR #29276) — https://github.com/ggml-org/llama.cpp/pull/29276
- NVD CVE Record (CVE-2026-131831) — https://nvd.nist.gov/vuln/detail/CVE-2026-131831
- MITRE CVE Record (CVE-2026-131831) — https://www.cve.org/CVERecord?id=CVE-2026-131831
- Official llama.cpp Repository — https://github.com/ggml-org/llama.cpp
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.