Skip to main content
← All vulnerabilities
CVE-2026-34159

llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in b8492
3 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

llama.cpp is an inference of several LLM models in C/C++. Prior to version b8492, the RPC backend's deserialize_tensor() skips all bounds validation when a tensor's buffer field is 0. An unauthenticated attacker can read and write arbitrary process memory via crafted GRAPH_COMPUTE messages. Combined with pointer leaks from ALLOC_BUFFER/BUFFER_GET_BASE, this gives full ASLR bypass and remote code execution. No authentication required, just TCP access to the RPC server port. This issue has been patched in version b8492.

Timeline

  1. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • ggml-org llama.cpp

    fixed in b8492

References 6

GitHub · ggml-org/llama.cpp

GitHub · TeamN4C/SG-2026-0021

GitHub · casp3r0x0/CVE-2026-34159

GitHub · rohithronanki/CVE-2026-34159-Vulnerability-Research-Analysis-Detection