Sceawere

Vulnerability Detail

CVE-2026-39909UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

llama.cpp RPC Server Use-After-Free

Vulnerability Metadata

Severity
High
Score / CVSS
8.1
Creation Date
2h ago
Vendor
ggml-org
Product
llama.cpp
Attack Type
Use After Free
Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Complexity
HIGH

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "8.1",
  "pubDate": "2026-08-21T17:16:30.810Z",
  "pubdate": "2026-08-21T17:16:30.810Z",
  "executiveSummary": "A use-after-free vulnerability exists in llama.cpp before b8585 within the RPC server's GRAPH_RECOMPUTE handler. This flaw allows unauthenticated remote attackers to achieve arbitrary read and write access to system memory.\nThe vulnerability impacts the llama.cpp RPC server component, posing severe risk implications by potentially enabling full remote code execution without requiring any authentication or user interaction.\nAttackers can leverage network exposure to send malicious RPC requests, storing computation graphs, freeing referenced buffers, and subsequently reclaiming the freed memory with attacker-controlled content to exploit dangling pointers during graph re-execution.",
  "technicalDetails": "The root cause of the vulnerability resides in improper memory management within the RPC server's GRAPH_RECOMPUTE handler of llama.cpp before b8585. Specifically, the component fails to properly manage references to memory buffers associated with computation graphs.\nThe affected component is the RPC server, specifically the GRAPH_RECOMPUTE handler, which processes remote computation graph execution requests over the network without requiring authentication or privileges.\nThe exploitation method relies on a classic use-after-free pattern. First, an unauthenticated remote attacker stores a computation graph via the RPC interface. Second, the attacker triggers actions that free the memory buffers referenced by the stored graph, leaving dangling pointers pointing to the deallocated memory regions.\nThird, the attacker sends subsequent RPC payloads designed to reclaim the newly freed memory locations with attacker-controlled content (heap feng-shui). Finally, the attacker triggers the GRAPH_RECOMPUTE handler to re-execute the stored computation graph.\nBecause the graph references dangling pointers that now point to attacker-controlled data, the re-execution resolves to manipulated memory addresses. This enables the attacker to achieve arbitrary read and write capabilities within the context of the running application.\nThe post-exploitation impact includes full remote code execution on the host running the vulnerable llama.cpp RPC server, entirely bypassing authentication and user interaction requirements."
}
CVE-2026-39909: llama.cpp RPC Server Use-After-Free (HIGH Severity, CVSS: 8.1) - Sceawere