ZDI-26-1072: llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service Vulnerability
Summary
Zero Day Initiative (ZDI) has published security advisory ZDI-26-1072 regarding an Integer Overflow Denial-of-Service vulnerability in llama.cpp, tracked as CVE-2026-131830. This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of llama.cpp when a user opens a malicious GGUF file. The flaw carries a CVSS score of 5.5 (Medium) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected Products
- llama.cpp (versions processing multimodal projector GGUF files prior to Pull Request #27071 fix)
Technical Details
The specific flaw exists within the processing of 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 buffer allocation. Exploitation requires user interaction, specifically forcing the target to open a specially crafted malicious file.
- CVE ID: CVE-2026-131830
- CVSS Score: 5.5 (Medium)
- CVSS Vector: AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Advisory ID: ZDI-26-1072
- Credit: zent
Impact
An attacker can leverage this vulnerability to crash the application, resulting in a Denial-of-Service (DoS) condition on the system.
- Confidentiality: None — This vulnerability does not lead to the exposure or disclosure of sensitive information.
- Integrity: None — This vulnerability does not allow unauthorized modification of data or system files.
- Availability: High — Triggering the integer overflow via a malicious GGUF file crashes the application, disabling service availability.
Mitigation & Remediation Recommendations
- Software Update: Apply the updated patch provided by llama.cpp through Pull Request #27071 or upgrade to the latest codebase release.
- File Handling Caution: Restrict opening or processing GGUF files originating from unverified or untrusted sources.
- Least Privilege Principle: Execute llama.cpp processes with minimal necessary permissions to restrict system-wide impact during application failures.
References
- Advisory source link — http://www.zerodayinitiative.com/advisories/ZDI-26-1072/
- llama.cpp GitHub Patch Pull Request #27071 — https://github.com/ggml-org/llama.cpp/pull/27071
- CVE-2026-131830 Detail on NVD — https://nvd.nist.gov/vuln/detail/CVE-2026-131830
- CVE-2026-131830 Record on MITRE — https://www.cve.org/CVERecord?id=CVE-2026-131830
- Official llama.cpp GitHub 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.