CVE-2026-137567: llama.cpp b11450 before b12658 Out-of-Bounds Write via RPC copy_tensor
llama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to arbitrary heap addresses via zero-element destination tensors. Attackers can learn buffer bases with BUFFERGETBASE, then send RPCCMDCOPYTENSOR with a destination pointer below the buffer base to crash the server or execute code.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments running the ggml RPC server in llama.cpp builds from b11450 through versions before b12658 are exposed. The vulnerable RPC interface can be reached by unauthenticated attackers.
What does an attacker need to exploit it?
An attacker needs network access to the ggml RPC server. They can obtain buffer base addresses using BUFFER_GET_BASE and then send RPC_CMD_COPY_TENSOR with a zero-element destination tensor and a destination pointer below the buffer base.
What is the impact of successful exploitation?
The issue permits writes to arbitrary heap addresses. An attacker may crash the RPC server or execute code.
What should be done to remediate the issue?
Update llama.cpp to b12658 or later, which is the release identified as fixing the affected pre-b12658 builds.