On this page (7 sections)

A critical vulnerability, CVE-2026-137567, affects the ggml RPC server in llama.cpp. According to the GitHub Advisory Database entry, builds from b11450 up to, but not including, b12658 contain an out-of-bounds write that an unauthenticated attacker can reach over the network. The described outcomes are a crashed server or code execution.

If you run llama.cpp's RPC server to spread model inference across machines, or you host it for a team, a client, or a product, this applies to you. The advisory was published on 2026-11-26, so details are still limited and are worth rechecking over the coming days.

What the advisory says

The advisory text describes an out-of-bounds write in the ggml RPC server. By using destination tensors that contain zero elements, an unauthenticated attacker can cause writes to arbitrary heap addresses. The advisory states that the attacker can first learn the base addresses of buffers with a BUFFER_GET_BASE request, then send an RPC_CMD_COPY_TENSOR request whose destination pointer sits below the buffer base. The stated result is that the server crashes or executes code.

The CVSS v4 metrics listed on the GitHub entry are: network attack vector, low attack complexity, no attack requirements, no privileges, and no user interaction. Confidentiality, integrity and availability impact on the vulnerable system are all rated high. In plain terms, anyone who can reach the port can attempt it, with no login and no one clicking anything.

The GitHub entry is marked "Unreviewed" and lists affected and patched versions as unknown in its package fields. The version range above comes from the vulnerability description itself. The advisory also references a VulnCheck advisory, whose content was not available to us. The NVD page repeats the same text, so it is not independent confirmation.

Why this class of bug is serious

An out-of-bounds write (CWE-787) means the program stores data outside the memory region it was meant to use. If an attacker controls where and what gets written, the result ranges from a crash to overwriting data the program relies on, which can lead to code execution. Here the advisory says the write target can be an arbitrary heap address, and that the attacker can discover buffer locations first, which is what makes a crash-only bug potentially more dangerous.

The RPC server is built to accept commands from remote clients so that compute can be shared between hosts. Services like this are often meant for a trusted local network, and are sometimes bound to all interfaces for convenience. That combination, a powerful remote interface with no authentication, is the real exposure here.

Who is realistically exposed

  • Teams that started the llama.cpp RPC server on a GPU box or lab machine and left it listening on a non-loopback address.
  • Hosts where the RPC port is open to the internet, a shared VPC, or a flat office network.
  • Container or Kubernetes deployments that publish the RPC port through a service or port mapping.
  • Anyone who built llama.cpp from source or pulled a prebuilt build between b11450 and b12657 and has not updated since.

If you only use llama.cpp for local, single-machine inference and never start the RPC server, the advisory's attack path does not apply to your setup, though updating is still sensible.

How to check your exposure

First find out whether an RPC server is running and where it listens. This read-only command lists listening TCP sockets with their processes on Linux; look for a llama.cpp RPC process and note whether its address is 127.0.0.1 or something broader such as 0.0.0.0.

List listening TCP ports and owning processes (Linux, run as root or with sudo)Shell
sudo ss -tlnp

Then check which build you run. llama.cpp binaries normally print their build number with the version flag; compare the number with b12658. If you built from a git checkout, compare your commit against the fix instead.

Print the llama.cpp build number (run from your build directory; binary name may differ by setup)Shell
./llama-cli --version

A build number from b11450 up to b12657 is in the affected range. For source builds, confirm whether your tree contains the fixing commit.

What to do now

  1. Inventory every host and container that runs the llama.cpp RPC server, including test and lab machines.
  2. Update to llama.cpp b12658 or later, and rebuild any container images that bundle llama.cpp.
  3. Until patched, stop the RPC server where it is not needed, or bind it to loopback only.
  4. Block the RPC port at the firewall or security group so only specific trusted hosts can reach it. Never expose it to the public internet.
  5. If it must be reachable between machines, place it on a private network or behind a VPN or SSH tunnel.
  6. Restart the service after updating and confirm the new build number with the version check above.
  7. If a server was exposed and you see unexplained crashes or unfamiliar processes, treat the host as possibly compromised and rotate any secrets stored on it.
Caution. Rebuilding and restarting the RPC server interrupts any inference jobs that depend on it. Schedule the change and drain active workloads first.
Tip. Review the upstream pull request and release notes before rolling out, so you know what else changed between your current build and b12658.

Detection and monitoring

The sources describe no known exploitation and give no indicators of compromise, so there is no signature to hunt for. Practical signals are indirect: repeated unexpected crashes or restarts of the RPC process, connections to the RPC port from addresses that are not your own inference hosts, and new outbound connections or child processes from the host running it.

Keep the service's logs and your firewall logs for the RPC port. From the outside, a regular check that the port is not reachable from the internet is cheap insurance. A security scan of your verified sites can help you notice unexpected open services, and monitoring can alert you when availability changes, though neither replaces patching the build itself.

What is still unknown

  • No confirmed in-the-wild exploitation is reported in the available sources, and the CVE is not in CISA's KEV catalog as of this writing.
  • The GitHub entry lists patched versions as unknown, so rely on the version range in the description and the b12658 release.
  • Only one advisory chain covers this so far, so details may be refined.

For broader hardening of servers that expose services, see our guides on small business website security and what a WAF is, keeping in mind that a web firewall does not cover a raw RPC protocol port, which needs network-level restriction.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-137567 - GitHub Advisory Databasegithub.com
  2. CVE-2026-137567: llama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to…nvd.nist.gov ·
  • llama.cpp
  • CVE-2026-137567
  • ggml
  • out-of-bounds write
  • AI infrastructure