llama.cpp Vulnerability CVE-2026-137567 (RPC Server)
How to Check Exposure and Update to b12658 or v1.1.0
CVE-2026-137567: the llama.cpp RPC server has an unauthenticated out-of-bounds write (CVSS 9.8). Affects b11450 to b12658 and v1.0.0. Check and fix steps.
CVE-2026-137567 is an out-of-bounds write in the RPC server of llama.cpp (ggml-rpc-server, formerly rpc-server), which is used for distributed inference. An attacker who can reach the server without authentication may crash it or run code on it. Only setups that actually run the RPC server are affected: build b11450 up to (but not including) b12658, and v1.0.0. Update to b12658 or later, or v1.1.0, or stop the RPC server or bind it to 127.0.0.1 only.
This article is based on the NVD record, the VulnCheck advisory (which assigned and scored the CVE), the llama.cpp fix pull request (#32651), the release pages for b12658 and v1.1.0, and the official README of the RPC server. It covers how to check whether you are affected, what to do per environment, and mitigations while you cannot patch. Version numbers and dates are limited to what the sources confirm; anything we could not confirm is marked as "not published" or "check with your distributor".
The Short Version
- What: The llama.cpp RPC server has an out-of-bounds write. An unauthenticated attacker can learn a buffer's base address and then write to addresses below it, which can crash the server or lead to code execution. CVSS 3.1 is 9.8 and CVSS 4.0 is 9.3. No exploitation has been reported
- Who: Anyone running ggml-rpc-server, especially bound to 0.0.0.0 or a LAN address for multi-machine distributed inference. If you only use llama-server or llama-cli on a single machine, no RPC server is running and this issue does not apply
- Today: Check for the RPC server process and a listener on port 50052. If it is running, update to b12658 or later, or v1.1.0. If you cannot update right away, stop it or limit it to 127.0.0.1, and block everything except trusted hosts at the firewall
Who Is Affected: Quick Reference
Exposure depends on three things: whether you run the RPC server, where it listens, and which version it is. Find the row closest to your setup.
| Environment / usage | Impact | Action |
|---|---|---|
Single machine with llama-server / llama-cli, no RPC | Not affected (no RPC server running) | None needed; keep updating as usual |
Built with -DGGML_RPC=ON but ggml-rpc-server is not running | Not affected (nothing is listening) | Drop GGML_RPC from future builds if unused |
ggml-rpc-server on the default 127.0.0.1:50052, used only on that machine | Not reachable from outside; reachable from other users and processes on the same machine | Update to a fixed version; sooner on shared machines |
ggml-rpc-server exposed on a LAN or 0.0.0.0 for multi-machine inference | Affected (top priority). Anyone on the network can connect without authentication | Update; until then stop it or restrict to trusted hosts |
| Builds older than b11450 | Outside the range stated for this CVE (VulnCheck lists b11450 and later) | Not covered here, but RPC has had earlier bugs, so update anyway |
| b11450 up to b12658 (exclusive) | Affected (if the RPC server is running) | Update to b12658 or later |
| v1.0.0 | Affected (if the RPC server is running) | Update to v1.1.0 |
| b12658 or later, or v1.1.0 | Fixed | Done; still review how widely RPC is exposed |
Two cautions. First, builds older than b11450 are not necessarily safe. VulnCheck's range is "b11450 up to b12658", so older builds are simply not listed for this CVE and may carry other known problems. Second, the official README states that the RPC server is a proof of concept, fragile and insecure. Even on a fixed version, do not run the RPC server on an open network or in a sensitive environment.
What Is Happening
llama.cpp can split a model that does not fit on one machine across several machines. This is the RPC backend: you run ggml-rpc-server on remote machines, and llama-cli or llama-server on your main machine connects to them with the --rpc option, using their GPUs and memory as if they were local. The trade-off is that the server side opens a TCP port and processes commands that arrive from the network.
By default the RPC server listens on 127.0.0.1, port 50052. -H (--host) changes the address and -p changes the port; the server prints a warning if you bind to anything other than 127.0.0.1. That is by design, but the server has no authentication: anyone who can reach the port can send commands.
According to the NVD and VulnCheck descriptions, the flaw works like this. An attacker first sends the BUFFER_GET_BASE command to learn the base address of a buffer on the server. Then the attacker sends RPC_CMD_COPY_TENSOR (the tensor copy command) with a destination tensor that has zero elements, and the server writes to an address below that base. This is an out-of-bounds write; depending on how it is aimed, it can simply crash the server or, by choosing what is written and where, lead to code execution. The fix is pull request #32651 ("rpc : typed request helpers and a single validation step on the server"), which consolidates request validation on the server into a single step.
The severity is 9.8 under CVSS 3.1 (AV:N/AC:L/PR:N/UI:N, High for confidentiality, integrity and availability) and 9.3 under CVSS 4.0. The scores are high because the attack works over the network, without authentication or user interaction, at low complexity; if nobody can reach the port, there is no practical exposure. VulnCheck assigned and scored the CVE, and the NVD published it on November 26, 2026. No exploitation has been reported in the sources we checked.
This is not the first RPC bug. In March 2026, CVE-2026-27940 (March 12) and CVE-2026-34159 (March 26, GHSA-j8rj-fmpv-wcxw), an unauthenticated code execution that bypassed validation by passing buffer=0 in a GRAPH_COMPUTE command, were disclosed. It is better to treat the RPC server as a component whose exposure you limit, not one you can simply keep patched.
How to Check Whether You Are Affected
Check three things in order: (1) is an RPC server running, (2) on which address is it listening, and (3) is the version a fixed one. Run everything on the machine that runs ggml-rpc-server.
Step 1: Look for the RPC server process. The name is ggml-rpc-server, or rpc-server on older builds.
# Linux / macOS
ps aux | grep -E 'ggml-rpc-server|rpc-server' | grep -v grep
# Windows (Command Prompt)
tasklist | findstr /i rpc-server
# Windows (PowerShell)
Get-Process | Where-Object { $_.ProcessName -match 'rpc-server' }If nothing shows up, no RPC server is running right now. However, if it is set to start automatically (systemd, launchd, Task Scheduler, Docker and so on), it will come back after a reboot, so check the configuration as well.
Step 2: Check for a listener on port 50052. This is the default port. If you changed it with -p, check that number instead.
# Linux
ss -ltnp | grep 50052
# macOS
lsof -iTCP:50052 -sTCP:LISTEN
# Windows (Command Prompt)
netstat -ano | findstr :50052
# Windows (PowerShell)
Get-NetTCPConnection -LocalPort 50052 -State Listen- 127.0.0.1:50052 only: reachable only from within the same machine
- 0.0.0.0:50052, *:50052, [::]:50052, or a LAN IP (for example 192.168.x.x): reachable from the network; handle this first
- If you run it in Docker, check the ports column of docker ps (for example 0.0.0.0:50052->50052/tcp) to see whether it is published outside the host
Step 3: Check the version. llama.cpp versions are identified by build number (the letter b plus a number).
# Print the build number (adjust the path to your binaries)
llama-server --version
llama-cli --version
# If you build from source: the tag and commit you checked out
git -C /path/to/llama.cpp describe --tags
git -C /path/to/llama.cpp log -1 --format='%H %cd'
# Does your tree contain the fix commit 03813c56?
git -C /path/to/llama.cpp merge-base --is-ancestor 03813c56 HEAD && echo contains || echo missing- Build number 12658 or higher contains the fix; v1.1.0 also contains it
- b11450 up to b12658 (exclusive) or v1.0.0 needs an update
- The build running ggml-rpc-server can differ from the build of your main llama-server. Check the version on the machine that runs the RPC server
What to Do, by Environment
For multi-machine inference, it is safest to keep the main host and the RPC servers on the same version; mismatched versions can break communication, so update them together.
If You Build from Source
cd /path/to/llama.cpp
# Note the current version
git describe --tags
# Update (a tag at b12658 or later, or v1.1.0)
git fetch --tags origin
git checkout v1.1.0
# Rebuild with RPC (CUDA example; choose the backend for your hardware)
rm -rf build-rpc-cuda
mkdir build-rpc-cuda && cd build-rpc-cuda
cmake .. -DGGML_CUDA=ON -DGGML_RPC=ON
cmake --build . --config Release
# Verify
./bin/llama-server --versionIf You Use Official Release Binaries
- Download the newer binary for your OS and backend from the GitHub release pages (b12658, v1.1.0) and replace the old one
- Which binaries include ggml-rpc-server differs by release, so check the asset list on the release page. If a package does not include it, that package cannot start an RPC server
If You Use Docker
- Check whether the image's publisher (the official container registry or a third party) has released an image containing b12658 or later, or v1.1.0. For third-party images, timing depends on the publisher and we cannot confirm it
- When running the RPC server in a container, -p 50052:50052 publishes on all host interfaces. Narrow it, for example -p 127.0.0.1:50052:50052
If llama.cpp Comes via Homebrew, a Package Manager or Another Tool
For Homebrew, Linux distribution packages and llama.cpp bundled in other tools, we could not confirm when fixed versions are or will be distributed. Check each distributor's update status. After brew upgrade or a distribution update, llama-server --version from the previous section tells you whether the build number is 12658 or higher. Until an update is available, use the mitigations below.
Mitigations While You Cannot Patch
None of these replaces the update. They only buy time. They are listed roughly from most to least reliable.
| Mitigation | What to do | Caveat |
|---|---|---|
| Stop the RPC server | End the ggml-rpc-server process and disable auto-start | Most reliable; distributed inference stops working |
| Listen on 127.0.0.1 only | Start with ggml-rpc-server -H 127.0.0.1 -p 50052 (the default) | Unreachable from the network; still reachable from other users and processes on the same machine |
| Firewall port 50052 to trusted hosts only | Allow only the main host's IP and deny the rest | A mistake leaves a gap; keep the allowed range minimal |
| SSH tunnel | Keep the RPC server on 127.0.0.1 and forward from the main host over SSH | Traffic is encrypted and protected by SSH authentication; a general defense, not an official feature |
Here are firewall examples. 192.168.88.10 stands for the main host's IP; replace it with yours. Back up your current rules first, and be careful not to lock yourself out of a remote session.
# Linux (ufw): allow only the main host, deny the rest
sudo ufw allow from 192.168.88.10 to any port 50052 proto tcp
sudo ufw deny 50052/tcp
sudo ufw status numbered
# Windows: inbound is blocked by default. If an existing rule allows 50052, limit its remote address to the main host
Get-NetFirewallRule -Direction Inbound -Enabled True | Get-NetFirewallPortFilter | Where-Object { $_.LocalPort -eq 50052 }Here is an SSH tunnel example. The RPC server keeps listening on 127.0.0.1, and the main host forwards to it.
# On the RPC server (listen on 127.0.0.1 only)
ggml-rpc-server -H 127.0.0.1 -p 50052
# On the main host: forward local 50052 to the RPC server's 127.0.0.1:50052
ssh -N -L 50052:127.0.0.1:50052 user@rpc-server-host
# In another terminal, point --rpc at the local end of the tunnel
llama-server -hf ggml-org/gemma-3-1b-it-GGUF -ngl 99 --rpc 127.0.0.1:50052Even with an SSH tunnel, anyone who can log in to the RPC server machine, and any other program running on it, can still reach the port. On shared servers, do not rely on 127.0.0.1 alone.
Timeline
| Date | Event | Source |
|---|---|---|
| 2026-03-12 | CVE-2026-27940 in the RPC backend disclosed | llama.cpp security information |
| 2026-03-26 | CVE-2026-34159 in RPC (validation bypass with buffer=0 in GRAPH_COMPUTE, unauthenticated code execution) disclosed (GHSA-j8rj-fmpv-wcxw) | llama.cpp security information |
| 2026-10-06 | b11450 released; the lower bound of the affected range | VulnCheck, release page |
| 2026-11-13 | v1.0.0 released; affected; 299 commits before the fix commit | Release page, comparison check |
| 2026-11-23 | PR #32651 (commit 03813c56) merged | Pull request |
| 2026-11-24 | b12658 released; contains the fix | Release page |
| 2026-11-26 | v1.1.0 released; contains the fix. NVD published CVE-2026-137567 (assigned and scored by VulnCheck). No exploitation reported | NVD, release page |
Checklist for Today
- Check whether ggml-rpc-server (formerly rpc-server) is running on your machines and servers (processes and auto-start settings)
- Check for a listener on port 50052 (or the port you set with -p); treat anything other than 127.0.0.1 as reachable from the network
- Check the build number with llama-server --version. If it is b11450 up to b12658, or v1.0.0, update
- Update to b12658 or later, or v1.1.0. For multi-machine inference, keep the main host and RPC servers on the same version
- If you cannot update at once, stop the RPC server or limit it to 127.0.0.1, and block everything except trusted hosts at the firewall
- Confirm the RPC server is not on the internet, a guest Wi-Fi or a network that handles confidential data
- For llama.cpp bundled in Docker, Homebrew or other tools, check each distributor's update status
The November 27 vulnerability digest, published the same day, lists what else to check today. For version changes and compatibility in llama.cpp, see the ggml 1.0 release changes, and for choosing an inference engine, see the local LLM inference engine comparison.
Sources
- NVD: CVE-2026-137567
- VulnCheck advisory: llama.cpp b11450 before b12658 Out-of-Bounds Write via RPC Copy Tensor
- llama.cpp pull request #32651 (rpc : typed request helpers and a single validation step on the server)
- llama.cpp b12658 release
- llama.cpp v1.1.0 release
- llama.cpp RPC server README (tools/rpc)
FAQ
I only run llama-server on one machine. Am I affected?
If you are not running the RPC server (ggml-rpc-server), this issue does not affect you. The flaw is in the RPC server, and running llama-server alone does not start one. To be sure, check that no ggml-rpc-server process exists and that nothing listens on port 50052. Keep applying normal updates as usual.
I use Ollama or LM Studio. Am I affected?
The sources we checked contain no information that Ollama or LM Studio starts ggml-rpc-server. If you have not started ggml-rpc-server yourself, you can reasonably treat this issue as not applicable. How each tool uses llama.cpp internally may vary by version, so if you are concerned, check each tool's update notes.
Is listening on 127.0.0.1 only enough?
It removes the main exposure, since the port is no longer reachable from the network. But other users logged in to the same machine, and other programs running on it, can still reach it. On shared servers or machines that run untrusted software, update to a fixed version instead of relying on 127.0.0.1 alone.
After updating to b12658 or v1.1.0, can I expose the RPC server?
We do not recommend it. The official README calls the RPC backend a fragile, insecure proof of concept and asks you not to run it on open networks or in sensitive environments. Another RPC vulnerability was also disclosed in March this year. After updating, keep it to a trusted dedicated network and restrict the allowed sources at the firewall.
How can I tell whether I was attacked?
The sources we checked list no specific indicators of compromise. As leads, look for unexpected RPC server crashes, unfamiliar source addresses connecting to port 50052, and unfamiliar processes, recent files or new users. Finding nothing does not prove safety.
株式会社オブライト
Oflight Inc. is a Tokyo-based IT company providing software development, digital signage, web development, network systems, and IoT/AR/VR technology services.
Related free tools (no sign-up, instant results)
Feel free to contact us
Contact Us