ZDI-26-1076: llama.cpp Multimodal GGUF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
Summary
A Remote Code Execution (RCE) vulnerability has been identified in the open-source llama.cpp project (ZDI-26-1076 / CVE-2026-131834). The vulnerability stems from an Out-Of-Bounds Write condition during the parsing of multimodal projector GGUF files. Successful exploitation allows remote attackers to execute arbitrary code within the context of the running process when a target user opens a crafted malicious GGUF file.
Affected Products
- llama.cpp (versions prior to the fix in Pull Request #32130)
Technical Details
The vulnerability resides in the processing of multimodal projector GGUF files due to the lack of proper validation on user-supplied data. This flaw leads to a write operation past the end of an allocated memory object (out-of-bounds write). Exploitation requires user interaction, as the target user must open a specially crafted malicious GGUF file.
CVSS v3 Vector: AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS Score: 7.8)
Impact
Successful exploitation allows attackers to execute arbitrary code on the target system within the context of the current llama.cpp process.
- Confidentiality: High — attackers can read sensitive information and process memory contents.
- Integrity: High — attackers can modify process memory or execute arbitrary commands.
- Availability: High — memory corruption can result in application crash or denial of service.
Mitigation & Remediation Recommendations
- Update llama.cpp to the latest commit/version incorporating the fix from Pull Request #32130.
- Exercise caution and refrain from opening GGUF or multimodal projector files from untrusted sources.
- Apply the principle of least privilege when executing processes parsing AI/LLM models.
References
- ZDI Security Advisory ZDI-26-1076 — http://www.zerodayinitiative.com/advisories/ZDI-26-1076/
- llama.cpp GitHub Pull Request #32130 Fix — https://github.com/ggml-org/llama.cpp/pull/32130
- NVD CVE-2026-131834 — https://nvd.nist.gov/vuln/detail/CVE-2026-131834
- MITRE CVE Record CVE-2026-131834 — https://www.cve.org/CVERecord?id=CVE-2026-131834
- 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.