External risk intelligence

Llama.cpp RPC Server Heap Write Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-137567

The vulnerability exists in the ggml RPC server component of llama.cpp. While this component facilitates distributed computing and could be exposed on a network, it is typically used for internal cluster communication or research environments rather than being a public-facing internet service. Because it is a backend component, public exposure is plausible in some deployments but not a standard design pattern.

Out-of-bounds Write

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a critical vulnerability in the llama.cpp software, specifically within its ggml RPC server. The issue allows unauthenticated attackers to potentially overwrite memory, leading to server crashes or code execution. The main concern is to confirm if this technology is in use and assess potential exposure.

  • Attackers can crash servers or run code.
  • Confirm relevance and exposure for leadership.
  • Understand technology usage and risks.

Attack Path

How an attacker could exploit the issue

An unauthenticated attacker can exploit this vulnerability by targeting the ggml RPC server. The attacker initiates communication with the server and leverages a specific command to write data to arbitrary memory locations on the heap. This manipulation can lead to a server crash or potentially allow the attacker to execute their own code.

  • No authentication or prior access needed.
  • Triggered by sending a crafted RPC_CMD_COPY_TENSOR.
  • Potential for denial-of-service or code execution.

Live Threat

Current exploitation, exposure, and threat context

The ggml RPC server in llama.cpp could allow unauthenticated attackers to write to arbitrary memory locations. This is possible by manipulating zero-element destination tensors, which may lead to server instability or code execution when supported by the advisory.

  • Server memory addresses.
  • Writing to arbitrary heap addresses.
  • Server crash or code execution.

Operational Fix

Recommended remediation, mitigation, and detection steps

The `ggml RPC server` in `llama.cpp` is likely managed by the application or platform team responsible for the machine learning infrastructure. The first step is to locate all instances of this software, determine their business criticality and network exposure, and then identify the accountable owner for each. Remediation planning should follow based on these findings.

  • Identify application and platform owners.
  • Verify RPC server exposure and criticality.
  • Plan targeted remediation with owners.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is llama.cpp and the ggml RPC server?

llama.cpp is an open-source project designed to run large language models on consumer hardware. The ggml RPC server is a component within it that enables distributed computing, allowing the workload of processing tensors to be shared across multiple machines or nodes in a cluster environment rather than running solely on one system.

What does CVE-2026-137567 mean in plain English?

This vulnerability is classified as an out-of-bounds write (CWE-787). It means the server fails to properly check memory boundaries when handling certain data commands. An attacker can supply a specifically crafted request to write information into parts of the system's memory that they should not be able to access, which can force the software to crash or execute unauthorized commands.

How is this vulnerability triggered by an attacker?

An attacker triggers this by interacting with the RPC server without needing credentials. They first use a discovery command to identify buffer memory locations, then send a specifically crafted 'RPC_CMD_COPY_TENSOR' message. The vulnerability specifically involves zero-element destination tensors; standard operations that do not involve these malformed tensor structures will not trigger the memory corruption.

Is my organization at risk from this CVE?

Halo Surface Signal indicates the risk depends on your network architecture. While the ggml RPC server is designed for internal cluster communication or research tasks, it could be exposed if misconfigured. You should investigate if any of your systems are running this service, especially those reachable from outside your trusted network, as these represent the most likely targets for unauthorized access.

What are the first steps to address this issue?

Begin by auditing your infrastructure to locate all instances where the ggml RPC server is running. Coordinate with the platform or application teams managing your machine learning environments to verify if they are using an affected version. Once identified, assess the network exposure of these instances and prioritize updates or network isolation to mitigate the risk until a patch can be applied.

References