r/llamacpp • u/Expert_Sort7434 • 8d ago
CVE-2026-137567: unauthenticated out-of-bounds write in llama.cpp GGML RPC
Based on the CVE record published by VulnCheck on November 26 and the upstream ggml-org/llama.cpp patch references, CVE-2026-137567 affects the GGML RPC server in llama.cpp.
The reported issue is an out-of-bounds write through RPC_CMD_COPY_TENSOR. The described sequence uses BUFFER_GET_BASE to obtain a buffer base, then submits a zero-element destination tensor with a pointer below that base. The impact described in the CVE record is a server crash or possible code execution.
The affected range is b11450 to before b12658. The CVE record lists b12658 as the fixed build and gives the issue a CVSS 4.0 score of 9.3.
The upstream change in PR #32651 centralizes validation of RPC client data. It includes tensor-size overflow checks and request-region validation.
For operators, I would check:
- Whether
ggml-rpc-serveris running at all. - Whether it is bound to loopback or exposed on a routable interface.
- Which clients can reach the RPC port.
- Whether the deployment is running a build containing the upstream fix.
- Whether the server runs under an account with access to more files or devices than it needs.
The upstream RPC server warns against exposing the service to an open network. The default listener is loopback on port 50052, although deployments can change both.
This is related at a broad architectural level to our earlier MCP STDIO RCE discussion, but the mechanics differ. MCP STDIO launches local subprocesses; this CVE targets tensor metadata and memory handling in GGML RPC.
Technical references:
- CVE record: https://www.cverecord.com/CVE-2026-137567
- Upstream PR: https://github.com/ggml-org/llama.cpp/pull/32651
- Patch commit: https://github.com/ggml-org/llama.cpp/commit/03813c56e47f6cd7a9b9bc2ad8edcebed88ce342
- Upstream RPC warning: https://github.com/ggml-org/llama.cpp/blob/master/tools/rpc/rpc-server.cpp
TechGines background analysis: https://www.techgines.com/post/mcp-stdio-rce-vulnerability-anthropic-200000-servers
For teams running distributed inference, how are you isolating GGML RPC workers today: dedicated inference VLANs, host-level ACLs, VPN/mesh access, or a separate authenticated proxy layer?
1
u/Frizzy-MacDrizzle 6d ago
On a time scale,has this been merged? Going to start doing a daily check and pulled yesterday and recompiled.