CVE-2026-39909 PUBLISHED

llama.cpp Use-After-Free in RPC GRAPH_RECOMPUTE Handler

Assigner: VulnCheck
Reserved: 07.04.2026 Published: 21.08.2026 Updated: 21.08.2026

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.

Metrics

CVSS 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
CVSS Score: 9.2

Product Status

Vendor ggml-org
Product llama.cpp
Versions Default: unaffected
  • affected from 0 to b8585 (excl.)

Credits

  • Olivier Laflamme finder

References

Problem Types

  • Use After Free CWE