ZDI-26-1077: llama.cpp GGUF File Parsing HunyuanVL Heap-based Buffer Overflow Remote Code Execution Vulnerability
Summary
Trend Micro Zero Day Initiative (ZDI) has issued a security advisory regarding a Heap-based Buffer Overflow Remote Code Execution (RCE) vulnerability in llama.cpp (ZDI-26-1077 / CVE-2026-131835). The flaw occurs during GGUF file parsing, specifically within the handling of HunyuanVL vision projector models. This vulnerability carries a CVSS v3.1 score of 7.8 (High Severity). User interaction is required for successful exploitation, as the target must load a maliciously crafted model file.
Affected Products
- llama.cpp (specifically handling of HunyuanVL vision projector models / GGUF file parsing)
Technical Details
The specific flaw exists within the GGUF file parsing mechanism in llama.cpp when handling HunyuanVL vision projector models. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability by creating a crafted malicious GGUF model file. When the victim loads the model file, the attacker can trigger a buffer overflow and execute arbitrary code in the context of the current process.
Impact
Successful exploitation allows remote attackers to execute arbitrary code on affected installations of llama.cpp in the context of the current process.
CIA Assessment:
- Confidentiality: High — An attacker executing arbitrary code can gain full access to read sensitive memory and data within the llama.cpp process context.
- Integrity: High — An attacker can modify data or execute arbitrary commands in the context of the current process.
- Availability: High — Exploitation of the heap buffer overflow can cause the application to crash, leading to a denial-of-service condition.
Mitigation & Remediation Recommendations
- Update llama.cpp to the latest version that includes the patch for this vulnerability (refer to Pull Request #32131 in the official llama.cpp repository).
- Exercise caution and avoid loading GGUF model files (specifically HunyuanVL models) from untrusted or unverified sources.
- Apply the principle of least privilege to the process running llama.cpp to restrict the potential blast radius in the event of an exploit.
References
- ZDI Security Advisory (ZDI-26-1077) — http://www.zerodayinitiative.com/advisories/ZDI-26-1077/
- llama.cpp GitHub Fix Pull Request (#32131) — https://github.com/ggml-org/llama.cpp/pull/32131
- NVD CVE-2026-131835 — https://nvd.nist.gov/vuln/detail/CVE-2026-131835
- MITRE CVE-2026-131835 — https://www.cve.org/CVERecord?id=CVE-2026-131835
- 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.