Indonesia Healthcare Corporation IHC ICT Cybersecurity emblem
Theme
Language
0-Day / ZDI High · CVSS 7.8

ZDI-26-1074: llama.cpp GGUF File Parsing GEMMA4A Heap-based Buffer Overflow Remote Code Execution Vulnerability

24 November 2026 ·CVE-2026-131832

Summary

The Zero Day Initiative published a security advisory (ZDI-26-1074) regarding a Remote Code Execution (RCE) vulnerability in the llama.cpp project, tracked under CVE-2026-131832. The issue originates from improper handling during GGUF file parsing (specifically GEMMA4A audio projector models), resulting in a heap-based buffer overflow. Successful exploitation allows a remote attacker to execute arbitrary code within the context of the current process when a user loads a malicious model file. The vulnerability has a CVSSv3 base score of 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Affected Products

  • llama.cpp software (versions prior to the integration of Pull Request #24091).

Technical Details

This vulnerability exists within the logic handling GEMMA4A audio projector models during GGUF file parsing in llama.cpp. The flaw is caused by a lack of proper validation regarding the length of user-supplied data prior to copying it into a heap-based buffer.

An attacker can exploit this issue to trigger a heap-based buffer overflow. Exploitation requires user interaction, as the victim must load a specially crafted malicious model file. Once loaded, the overflow can be leveraged to execute arbitrary code with the privileges of the executing llama.cpp process.

Impact

Successful exploitation allows an attacker to execute arbitrary code on the target system within the security context of the llama.cpp process.

CIA Triad Impact Assessment:

  • Confidentiality: High — An attacker can gain read access to process memory and sensitive data via arbitrary code execution.
  • Integrity: High — An attacker can modify memory structures and execute arbitrary code within the running process.
  • Availability: High — Heap memory corruption can cause the application to crash, leading to a Denial of Service (DoS).

Mitigation & Remediation Recommendations

  • Update llama.cpp to the latest version that incorporates the patch from Pull Request #24091.
  • Refrain from downloading or loading GGUF model files from untrusted or unverified sources.
  • Enforce containerization, sandboxing, or least-privilege policies for AI/ML execution environments to restrict potential exploitation impact.

References

Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.

Advisory Lain