Description
llama.cpp before b8585 contains a use-after-free vulnerability in the RPC server's GRAPH_RECOMPUTE handler that allows unauthenticated remote attackers to achieve arbitrary read and write access by storing a computation graph, freeing referenced buffers, and reclaiming freed memory with attacker-controlled content. Attackers can send RPC requests to trigger re-execution of stored graphs with dangling pointers, enabling full remote code execution without requiring authentication or user interaction.
Published: 2026-08-21
Score: 9.2 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a use‑after‑free in the llama.cpp RPC server. An attacker can store a computation graph, free its buffers, then send another request that forces the server to re‑execute the freed graph. The dangling pointer allows the attacker to inject arbitrary data into freed memory, giving them the ability to read and modify arbitrary memory on the host, ultimately enabling full remote code execution without any authentication or user interaction.

Affected Systems

The affected product is ggml-org llama.cpp prior to release b8585. Any deployment that hosts the RPC interface and runs a version earlier than b8585 is vulnerable. The issue resides in the GRAPH_RECOMPUTE handler of the RPC server code.

Risk and Exploitability

The CVSS score of 9.2 indicates a very high severity. Because the vulnerability can be triggered via an unauthenticated RPC request, the attack surface is wide and attackers need only network connectivity to the RPC endpoint. The EPSS score is currently unavailable, but the lack of a KEV listing does not reduce the risk. Attackers can gain arbitrary read/write and thus remote code execution simply by sending crafted RPC requests; no further privileges or user interaction are required.

Generated by OpenCVE AI on August 21, 2026 at 17:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade llama.cpp to release b8585 or later, which includes the fix for the use‑after‑free.
  • If an immediate upgrade is not possible, disable or restrict access to the RPC service so that only trusted hosts can connect.
  • Continuously monitor network traffic for unexpected RPC calls and apply additional network segmentation or firewall rules to limit exposure.

Generated by OpenCVE AI on August 21, 2026 at 17:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp

Fri, 21 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description llama.cpp before b8585 contains a use-after-free vulnerability in the RPC server's GRAPH_RECOMPUTE handler that allows unauthenticated remote attackers to achieve arbitrary read and write access by storing a computation graph, freeing referenced buffers, and reclaiming freed memory with attacker-controlled content. Attackers can send RPC requests to trigger re-execution of stored graphs with dangling pointers, enabling full remote code execution without requiring authentication or user interaction.
Title llama.cpp Use-After-Free in RPC GRAPH_RECOMPUTE Handler
Weaknesses CWE-416
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-21T16:28:26.774Z

Reserved: 2026-04-07T20:57:06.209Z

Link: CVE-2026-39909

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-21T17:16:30.810

Modified: 2026-08-21T17:16:30.810

Link: CVE-2026-39909

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T17:30:03Z

Weaknesses