Remote code execution via stale graph recomputation
Published Aug 21, 2026 · Updated Aug 25, 2026
Use-after-free in llama.cpp's RPC GRAPH_RECOMPUTE handler allows remote attackers to execute code through stale graph replay. The server retains computation graphs after free_buffer releases their backing buffers, so later GRAPH_RECOMPUTE requests dereference attacker-reclaimable memory. TCP access to an unauthenticated ggml-rpc-server is sufficient; an upstream issue reproduces the flaw at b9994, so the published before-b8585 range is not reliable.
Summary
What happened
Use-after-free in llama.cpp's RPC GRAPH_RECOMPUTE handler allows remote attackers to execute code through stale graph replay. The server retains computation graphs after free_buffer releases their backing buffers, so later GRAPH_RECOMPUTE requests dereference attacker-reclaimable memory. TCP access to an unauthenticated ggml-rpc-server is sufficient; an upstream issue reproduces the flaw at b9994, so the published before-b8585 range is not reliable.
The record
- CVE
- CVE-2026-39909
- Published
- Aug 21, 2026
- Updated
- Aug 25, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-416, T1210
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 21, 2026CVE publishedPublication date reported by the CVE source.
- Aug 25, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- RPC stale-graph use-after-free reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo