- ai
- llm
- llama-cpp
- ggml
- rpc
- rce
- heap-overflow
news
llama.cpp ggml RPC Server Out-of-Bounds Write (CVE-2026-137567)
Critical up to 9.8Unauthenticated clients reaching llama.cpp rpc-server port 50052 can trigger a heap out-of-bounds write via RPC_CMD_COPY_TENSOR (CVSS 4.0 9.3, CVSS 3.1 9.8). Fixed in build b12658; local llama-cli and llama-server are unaffected; not in CISA KEV.
- Record
- CVE-2026-137567
- Score
- Critical up to 9.8
- Status
- Not KEVChecked, not listed
- Organization
- llama.cpp
Summary
On 26 November 2026, VulnCheck CNA published CVE-2026-137567 (CVSS 4.0 9.3 Critical, CVSS 3.1 9.8 Critical, reported by Min P. Hong of SEWORKS), an unauthenticated heap out-of-bounds write in the ggml rpc-server distributed inference helper bundled with llama.cpp. Builds b11450 through < b12658 are vulnerable; the fix landed on 24 November 2026 in build b12658 (commit 03813c56, PR #32651).
Because rpc-server listens on TCP port 50052 with no built-in authentication, any client able to reach the RPC port can send crafted BUFFER_GET_BASE and RPC_CMD_COPY_TENSOR commands targeting a zero-element destination tensor to corrupt server heap memory and potentially achieve remote code execution. Single-host deployments running only llama-cli or llama-server without rpc-server are not affected, and the issue is not in CISA KEV catalog 2026.11.25.
Third critical ggml RPC flaw in five weeks
| CVE | Date | Bug Class & Primitive | Fixed Build |
|---|---|---|---|
| CVE-2026-137567 | 26 Nov 2026 | RPC_CMD_COPY_TENSOR zero-element destination tensor heap out-of-bounds write (CVSS 4.0 9.3 / 3.1 9.8) | b12658 |
| CVE-2026-132615 | 23 Nov 2026 | alloc_buffer fails to clear buffers, leaking prior client weights and KV cache data to subsequent RPC callers (CVSS 3.1 7.5 High, ggml-rpc) | Unspecified in CVE record |
| CVE-2026-118375 | Oct 2026 | RDMA receive path stack buffer overflow (up to 256 KiB written into a 1-byte stack variable, CVSS 4.0 9.2 / 3.1 8.1) | b11865 |
The cluster underscores upstream maintainers' and security researcher Chris Rohlf's long-standing warning: rpc-server has no authentication, transport encryption, or process sandboxing by design and must never be exposed on shared or public networks.
Operator actions
- Check every host running distributed inference workers:
pgrep -af rpc-server ss -ltnp | grep 50052 - Rebuild or upgrade all
llama.cppRPC nodes to buildb12658or later, then restartrpc-server. - Bind
rpc-serverstrictly to localhost or an isolated private cluster VLAN / WireGuard mesh reachable only by trusted inference coordinators.