CVE-2026-137567

llama.cpp b11450 before b12658 Out-of-Bounds Write via RPC copy_tensor

Published Nov 26, 2026 CVSS 4.0 · 9.3 Critical EPSS n/a KEV · Not listed
Description
llama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to arbitrary heap addresses via zero-element destination tensors. Attackers can learn buffer bases with BUFFER_GET_BASE, then send RPC_CMD_COPY_TENSOR with a destination pointer below the buffer base to crash the server or execute code.

Analysis

AI-generated

Technical impact

The vulnerability lies in the ggml RPC server of llama.cpp, specifically between release tags b11450 and b12658. An out‑of‑bounds write is triggered when an attacker sends an RPC_CMD_COPY_TENSOR command that references a zero‑element destination tensor, allowing a write to a heap address below a buffer base. The write can crash the server or, if crafted correctly, execute attacker supplied code. This flaw is classified as CWE‑787, which signifies a vulnerability that permits a memory corruption resulting in arbitrary write capability.

Affected Systems

The affected product is ggml-org's llama.cpp. All versions from b11450 up to and including the pre‑b12658 releases are vulnerable. The bug is present in the RPC implementation that processes copy tensor commands.

Risk and Exploitability

The CVSS score of 9.3 reflects a high risk of remote exploitation. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, so the current exploitation probability is unknown. The attack vector is remote: unauthenticated users can reach the vulnerable RPC endpoint, learn buffer bases via BUFFER_GET_BASE, and then trigger the out‑of‑bounds write, potentially leading to remote code execution. Because the flaw grants an arbitrary heap write, any affected deployment that exposes the RPC interface to untrusted networks is at significant risk and should remediate immediately.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade llama.cpp to version b12658 or later to apply the fix to the RPC copy tensor handler.
  • If a quick upgrade is not possible, restrict or block external access to the ggml RPC server so that only trusted hosts can send commands.
  • Disable or remove the BUFFER_GET_BASE command from the RPC interface to reduce information disclosure that aids the exploitation.

Generated by OpenCVE AI on November 26, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp
Type Values Removed Values Added
Description llama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to arbitrary heap addresses via zero-element destination tensors. Attackers can learn buffer bases with BUFFER_GET_BASE, then send RPC_CMD_COPY_TENSOR with a destination pointer below the buffer base to crash the server or execute code.
Title llama.cpp b11450 before b12658 Out-of-Bounds Write via RPC copy_tensor
First Time appeared Ggml
Ggml llama.cpp
Weaknesses CWE-787
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 26, 2026, 1:13 PM
Reserved
Nov 26, 2026, 12:50 PM
Status
Awaiting Analysis
Published
Nov 26, 2026, 2:17 PM
Modified
Nov 26, 2026, 2:17 PM