Critical CVSS 9.8 Security news

llama.cpp: critical RPC server flaw lets anyone on the network write to memory, fixed in b12658

The RPC server in llama.cpp, a popular tool for running large language models on your own hardware, has a critical vulnerability, CVE-2026-137567 (CVSS 9.8). Anyone who can reach the server over the network can write to arbitrary memory addresses without logging in, crashing the server or running their own code. The CVE record was published on 26 November 2026; the fix shipped in build b12658 on 24 November. No exploitation has been reported so far.

Kyberkit editorial team · · event date · reading time 4 minutes · For admins and analysts

Critical: llama.cpp RPC server, CVE-2026-137567, CVSS 9.8

Key points

  • CVE-2026-137567 is an out-of-bounds write (CWE-787) in the ggml RPC server, in the handler for RPC_CMD_COPY_TENSOR. No authentication is needed.
  • An attacker first learns a buffer's base address with BUFFER_GET_BASE, then uses a destination tensor with zero elements to write below the start of that buffer. The result is a crash or code execution.
  • Builds b11450 up to, but not including, b12658 are affected. The fix came in change #32651, which centralised validation of client data, released on 24 Nov 2026 as b12658.
  • The RPC server has to be enabled at build time (GGML_RPC=ON), and the project itself warns never to run it on an open network. Ordinary llama.cpp use without RPC is not affected.

Vulnerabilities: CVE-2026-137567

What happened

On 26 November 2026 NVD published CVE-2026-137567, a critical vulnerability in the RPC server of llama.cpp (the ggml-org project). llama.cpp is one of the most widely used tools for running large language models on your own hardware, and many other programs are built on top of it. The CVE was assigned by VulnCheck as a CNA, which credits researcher Min P. Hong (SEWORKS).

The developers had already merged the fix as change #32651 on 23 November and shipped it on 24 November in build b12658. The change centralised validation of everything the RPC server receives from clients. As of 26 November nobody has reported exploitation or a public exploit, and the flaw is not in CISA's KEV catalog.

Technical details

  • Component: the ggml RPC server (ggml-rpc-server), which lets a model's computation be split across several machines. Clients send it commands that work with buffers and tensors in memory.
  • Bug class: out-of-bounds write (CWE-787) in the handler for RPC_CMD_COPY_TENSOR.
  • Preconditions: the attacker has to reach the RPC server over the network. No authentication or user interaction is needed – the RPC server has no authentication at all.
  • How it works: according to VulnCheck, the attacker first uses BUFFER_GET_BASE to learn where a buffer sits in memory. They then request a copy into a destination tensor that has zero elements and a pointer below the start of the buffer. The old check let this through, so the server writes data to an address of the attacker's choosing.
  • Impact: a server crash, or code execution with the privileges of the RPC server process. CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N) and CVSS 4.0 9.3, both scored by VulnCheck and shown in NVD; NVD has not done its own analysis yet.
How an attacker could exploit CVE-2026-137567 in the llama.cpp RPC server1. The attacker connects to ggml-rpc-server over the network, no login; 2. BUFFER_GET_BASE reveals a buffer's address in memory; 3. A copy into a zero-element tensor points outside the buffer; 4. The server writes data to an address the attacker picked; 5. The server crashes, or runs the attacker's code1The attacker connects toggml-rpc-server over the network, nologin2BUFFER_GET_BASE reveals a buffer'saddress in memory3A copy into a zero-element tensorpoints outside the buffer4The server writes data to an addressthe attacker picked5The server crashes, or runs theattacker's code
Simplified from VulnCheck's description; a defensive overview, not a how-to

Who is affected

Users of llama.cpp builds b11450 up to, but not including, b12658 who run the RPC server (ggml-rpc-server). RPC is optional: it is enabled at build time with GGML_RPC=ON and the server is started separately. The project's own documentation calls it "fragile and insecure" and warns never to run it on an open network or in a sensitive environment.

The most exposed setups are RPC servers listening on an address other machines can reach – typically labs and companies that pool several GPU machines to run one model. According to the CVE record, ordinary llama.cpp use (llama-cli, llama-server) without the RPC server is not affected. For applications that bundle llama.cpp, it depends on whether they start the RPC server and which llama.cpp build they ship.

How to tell if you were compromised

Neither VulnCheck nor the project has published indicators of compromise. We suggest these checks:

  • Is an RPC server running? Look for a ggml-rpc-server process and check which address and port it listens on (the documentation's example uses port 50052). If it listens on anything other than 127.0.0.1, find out who can connect to it.
  • Unexplained crashes or repeated restarts of the RPC server may be exploitation attempts.
  • Connections from unknown addresses to the RPC port in firewall logs or NetFlow.
  • If you suspect code execution: new processes running as the RPC server's user, unknown outbound connections, changed files and SSH keys.

Our IOC extractor pulls addresses out of logs, and the CVSS calculator breaks down the vector. Both run only in your browser.

What to do

  1. Update llama.cpp to b12658 or later, then rebuild and restart your RPC servers.
  2. Do not expose the RPC server to the internet or to networks you do not trust. Bind it to an internal address and use a firewall to allow only the specific machines that need it.
  3. Update apps built on llama.cpp once they pick up the fixed build, and avoid their RPC feature until then.
  4. If your RPC server was reachable from other networks, run the checks above. If you suspect a compromise, reinstall the machine and rotate any keys and passwords it held.

Securing self-hosted AI servers is also the subject of our piece on exposed Ollama servers.

Timeline

  • 23 Nov 2026 – change #32651, with centralised validation of RPC server requests, is merged into llama.cpp.
  • 24 Nov 2026 – build b12658 ships with the fix.
  • 26 Nov 2026 – VulnCheck publishes its advisory; CVE-2026-137567 appears in NVD ("Awaiting Analysis").

We verified the description, affected builds and scores in NVD and the VulnCheck advisory, the date and content of the fix in the llama.cpp repository (release b12658, PR #32651), and the security warning in the RPC server documentation.

Verified against sources on 26 Nov 2026.

FAQ

Am I affected if I only run llama.cpp locally on one machine?

Not unless you run ggml-rpc-server. The bug is only in the RPC server, which spreads a model across several machines and has to be enabled at build time. Applications built on llama.cpp may bundle it, though, so check whether a ggml-rpc-server process is running or listening on the port you gave it.

I use Ollama or another app built on llama.cpp. Should I worry?

As of 26 Nov 2026 downstream projects have not published their own advisories. What matters is whether the app starts the ggml RPC server and whether another network can reach it. Watch your app's release notes and update once it picks up llama.cpp b12658 or later.

Is putting the server behind a firewall enough?

It lowers the risk but does not replace the fix. The RPC server has no authentication, so anyone on a network that can reach it can exploit the flaw – including a compromised machine inside your own network.

Sources

  1. NVD – CVE-2026-137567
  2. VulnCheck – llama.cpp b11450 before b12658 out-of-bounds write via RPC copy tensor
  3. ggml-org/llama.cpp – release b12658 (24 Nov 2026)
  4. ggml-org/llama.cpp – PR #32651: typed request helpers and a single validation step on the server
  5. ggml-org/llama.cpp – RPC server documentation and security warning

Spotted a mistake? Let us know and we will correct it openly.