Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-34159: llama.cpp RPC backend unauthenticated memory read and write

Identifier
CVE-2026-34159
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-34159 affects llama.cpp, an inference library for LLM models in C/C++, prior to version b8492. In its RPC backend, deserialize_tensor() skips all bounds validation when a tensor's buffer field is 0, letting an unauthenticated attacker read and write arbitrary process memory through crafted GRAPH_COMPUTE messages. Combined with pointer leaks from ALLOC_BUFFER and BUFFER_GET_BASE, this gives full ASLR bypass and remote code execution, requiring only TCP access to the RPC server port.

Mitigation

This issue has been patched in version b8492.