---
title: "llama.cpp RPC Check (CVE-2026-118375)"
canonical: https://trickest.com/library/llama-cpp-rpc-check-cve-2026-118375
description: "One validated HELLO handshake classifies llama.cpp RPC backends against CVE-2026-118375 and CVE-2026-34159, with no data-bearing RPC ever sent."
---

# llama.cpp RPC Check (CVE-2026-118375)

## Overview

This workflow classifies llama.cpp RPC backends against two memory-corruption flaws that share one network surface. CVE-2026-34159 is the sharper of the two: a zero-length buffer bypass in tensor deserialization that reaches arbitrary read and write, covered by a public proof-of-concept chain that defeats ASLR and ends in code execution, which puts it in the CRITICAL tier for AI infrastructure despite being an internal-surface bug by design. CVE-2026-118375 is the stack overflow in the RDMA receive path, affecting builds from b8841 up to the fix at b11865. The workflow never triggers either: the only bytes it sends are one structurally validated HELLO handshake, the same frame a plain-TCP llama.cpp client sends, and every data-bearing RPC command that constitutes the exploit chains is refused by construction. Field data shows no exposed instances so far, which is context, not a clean bill. Each host comes back with a verdict you can feed into [exposure management](/use-cases/exposure-management).

## Pipeline

1. Read the target list and make one TCP connection per host, with a single retry on transport error, and send exactly one HELLO handshake: one command byte, a length field, and a zeroed capability vector for a plain-TCP client.
2. The response reveals the protocol version and whether the peer advertised RDMA capability. Nonzero capability bits mean the RDMA transport is in play, which makes the host a CVE-2026-118375 candidate regardless of build number.
3. The guard permits only the HELLO constant: graph-compute, tensor-set, buffer-allocation, and base-pointer commands, the exact primitives of both exploit chains, are unconstructible. No fuzzing, no banner bytes, no version probing through unexpected message types.
4. Map the build from the HELLO response or your inventory: below b8492, CVE-2026-34159 is affected and the older CVE is unverified; from b8492 to b11865, only the RDMA CVE applies; at b11865 and later, neither.
5. Reconcile one verdict per target with per-CVE states, and write findings plus summary counts. Without inventory, both CVEs read as version-unverified exposure.

## Inputs

- **Target list.** llama.cpp RPC endpoint addresses, with optional ports, that you are authorized to test. The default file ships a sample host; bind your own.
- **Inventory file.** Optional. Host-to-build rows from your asset system; llama.cpp builds are b-numbers compared numerically.

## Outputs

- **findings.jsonl.** One row per host: target, the handshake result and protocol version, whether RDMA was advertised, the build and its per-CVE states, verdict, and severity.
- **summary.jsonl.** One line with the total, verdict counts, per-CVE rows, and the note that one upgrade resolves both CVEs.

## Integrations

- TCP. One connection and one validated HELLO handshake per host, single retry on transport error, nothing else on the wire.

## Sample output

The records below are illustrative and do not come from a real run. They show a build where both CVEs apply, one where only the RDMA CVE applies, and a peer advertising RDMA.

```jsonl
{"target": "gpu-a.example.com", "port": 50052, "rpc_confirmed": true, "proto_version": "b8402", "build": "b8402", "rdma_advertised": false, "cve_34159": "affected", "cve_118375": "unverified", "verdict": "rpc_exposed", "detail": "unauthenticated RPC backend answered HELLO; build below b8492 so the buffer=0 RCE applies", "error": null}
{"target": "gpu-b.example.org", "port": 50052, "rpc_confirmed": true, "proto_version": "b9000", "build": "b9000", "rdma_advertised": false, "cve_34159": "patched", "cve_118375": "affected", "verdict": "rpc_exposed", "detail": "RDMA overflow window applies between b8492 and b11865", "error": null}
{"target": "gpu-c.example.net", "port": 50052, "rpc_confirmed": true, "proto_version": "b9000", "build": "b9000", "rdma_advertised": true, "cve_34159": "patched", "cve_118375": "affected", "verdict": "rpc_exposed", "detail": "peer advertised RDMA capability; a CVE-2026-118375 candidate regardless of build", "error": null}
```

```json
{"cves": ["CVE-2026-118375", "CVE-2026-34159"], "product": "llama.cpp ggml-rpc backend", "total_targets": 3, "verdict_counts": {"rpc_exposed": 3}, "kev": false, "field_context": "no exposed instances observed in field data so far", "note": "one upgrade, build b11865, resolves both CVEs; keep the RPC surface off untrusted networks"}
```

## FAQ

### Is the RPC backend meant to be network-reachable?

Treat it as an internal surface by design. The backend exists to let a frontend use remote accelerators on a trusted segment, and neither advisory describes internet-facing exploitation. The field data has found no exposed instances so far. Anything listening beyond that segment is a misconfiguration worth fixing on its own.

### Why is CVE-2026-34159 the CRITICAL tier?

Its advisory publishes a working proof-of-concept chain: the zero-length buffer bypass reaches arbitrary read and write, defeats ASLR, and ends in code execution through a legitimate RPC command. The automatable flag is set. That maturity, against a pre-auth network service, is what earns the tier.

### How does the HELLO handshake decide anything?

The handshake returns the protocol version and the peer's capability bits. The version maps to the build, which decides each CVE's state, and nonzero capability bits mean the RDMA transport is in play, which makes the host a CVE-2026-118375 candidate whatever its build. No memory-corruption primitive is ever exercised.

### What builds are affected?

CVE-2026-34159 affects builds before b8492. CVE-2026-118375 affects builds from b8841 to b11865. Build b11865 and later clears both. Builds are b-numbers compared numerically, and without inventory the workflow reports both as unverified rather than guessing.

## Related workflows

- [MongoDB Replica Set Check (CVE-2026-118383)](/library/mongodb-replica-set-check-cve-2026-118383). Reach for it when the next memory-corruption exposure is a database engine instead of an inference backend.
- [GPUStack Auth Bypass Check (CVE-2026-102895)](/library/gpustack-auth-bypass-check-cve-2026-102895). Reach for it when the next AI-infrastructure flag is a cluster manager instead of an RPC surface.
- [Full Network Port and Service Assessment](/library/full-network-port-and-service-assessment). Map which hosts expose RPC services across the estate first.

---
_Markdown source of https://trickest.com/library/llama-cpp-rpc-check-cve-2026-118375._
