CVE-2026-39909
llama.cpp before b8585 contains a use-after-free vulnerability in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ggml-org/llama.cpp/commit/389c7d4955ba55c7418afaebf7c23d9ed64ef707
- github.com/ggml-org/llama.cpp/pull/21175
- github.com/ggml-org/llama.cpp/releases/tag/b8585
- www.vulncheck.com/advisories/llama-cpp-use-after-free-in-rpc-graph-recompute-handler
- nvd.nist.gov/vuln/detail/CVE-2026-39909
- cve.org/CVERecord?id=CVE-2026-39909
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.