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

Critical 9.8 Published Updated

Unauthenticated attackers can achieve remote code execution in llama.cpp RPC backend via memory corruption in tensor deserialization.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34159?

CVE-2026-34159 is a critical memory corruption vulnerability in ggml-org llama.cpp, published on 1 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-119

Which versions are affected by CVE-2026-34159?

It affects 1 product.

Products include Ggml Llama.cpp.

How do I fix CVE-2026-34159?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-34159 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34159 exists.

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2026-34159, GHSA-j8rj-fmpv-wcxw, UBUNTU-CVE-2026-34159.

Is CVE-2026-34159 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free