ZDI-26-1078: llama.cpp GGUF File Parsing MINICPM-V Heap-based Buffer Overflow Remote Code Execution Vulnerability
Summary
Zero Day Initiative (ZDI) has released security advisory ZDI-26-1078 concerning a Heap-based Buffer Overflow vulnerability in the GGUF file parsing implementation of llama.cpp. Tracked as CVE-2026-131836, this vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability, as the target user must load a maliciously crafted model file.
Affected Products
- llama.cpp software (versions handling MiniCPM-V vision projector models prior to the issued patch).
Technical Details
The vulnerability CVE-2026-131836 exists within the handling of MiniCPM-V vision projector models during GGUF file parsing. The flaw stems from a lack of proper length validation of user-supplied data prior to copying it into a heap-based buffer. An attacker can leverage this vulnerability by providing a crafted GGUF file to trigger a buffer overflow and execute arbitrary code in the context of the running llama.cpp process. The CVSS v3.1 score for this vulnerability is 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
Impact
Successful exploitation allows an attacker to execute arbitrary code on the target system within the security context of the llama.cpp process.
- Confidentiality: High — An attacker can gain unauthorized access to sensitive application data and memory.
- Integrity: High — An attacker can modify application data or execute unauthorized commands on the target system.
- Availability: High — An attacker can cause application crashes or denial-of-service conditions.
Mitigation & Remediation Recommendations
- Software Update: Immediately update llama.cpp installations to the latest version containing the fix (refer to Pull Request #32132).
- Model Source Validation: Avoid opening or loading GGUF model files (specifically MiniCPM-V models) from untrusted or unknown sources.
- Principle of Least Privilege: Execute llama.cpp with restricted user privileges to limit potential damage in the event of exploitation.
References
- Zero Day Initiative Security Advisory (ZDI-26-1078) — http://www.zerodayinitiative.com/advisories/ZDI-26-1078/
- llama.cpp GitHub Pull Request #32132 — https://github.com/ggml-org/llama.cpp/pull/32132
- NVD CVE-2026-131836 Detail — https://nvd.nist.gov/vuln/detail/CVE-2026-131836
- MITRE CVE-2026-131836 Record — https://www.cve.org/CVERecord?id=CVE-2026-131836
- 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.