llama.cpp server_context_impl destroy vocab Use-After-Free Remote Code Execution Vulnerability

November 24th, 2026

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of HTTP requests during the server's sleep transition. The issue results from the lack of validating the existence of an object prior to performing operations on the object. An attacker can leverage this vulnerability to execute code in the context of the service account.

Additional Details

llama.cpp has issued an update to correct this vulnerability. More details can be found at:
https://github.com/ggml-org/llama.cpp/pull/32133

Disclosure Timeline

  • 2026-05-22 - Vulnerability reported to vendor
  • 2026-11-24 - Coordinated public release of advisory
  • 2026-11-24 - Advisory Updated

Credit

Nicholas Zubrisky (@NZubrisky) of TrendAI Research

Back to Advisories