Skip to content

CVE-2026-34159 llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend

CriticalCVSS 9.8 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
Debian

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
debian/llama.cpp(Debian 14) < 8611+dfsg-1; = 5151+dfsg-1~exp2; = 5151+dfsg-1~exp3; = 5318+dfsg-1 +23 more 8611+dfsg-1 Fixed
ggml llama.cpp < b8492 b8492 Fixed
ggml-org llama.cpp = < b8492 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ggml-org llama.cpp = < b8492 No fix listed
debian/llama.cpp(Debian:14) < 8611+dfsg-1 8611+dfsg-1
debian/llama.cpp(Debian:14) = 5151+dfsg-1~exp2 No fix listed
debian/llama.cpp(Debian:14) = 5151+dfsg-1~exp3 No fix listed
debian/llama.cpp(Debian:14) = 5318+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 5318+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 5713+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 5760+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 5760+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 5760+dfsg-3 No fix listed
debian/llama.cpp(Debian:14) = 5760+dfsg-4 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-3 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-3~exp1 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-3~exp2 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-3~exp3 No fix listed
debian/llama.cpp(Debian:14) = 5882+dfsg-4 No fix listed
debian/llama.cpp(Debian:14) = 6641+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 6641+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 6641+dfsg-3 No fix listed
debian/llama.cpp(Debian:14) = 7593+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 7593+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 7593+dfsg-3 No fix listed
debian/llama.cpp(Debian:14) = 7965+dfsg-1 No fix listed
Show 4 more
ProductAffected versionsFixed in
debian/llama.cpp(Debian:14) = 8064+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 8064+dfsg-2 No fix listed
debian/llama.cpp(Debian:14) = 8461+dfsg-1 No fix listed
ggml llama.cpp < b8492 b8492

References