CVE Catalog

CVE-2026-107183

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Summary

llama.cpp before b11393 contains a use-after-free and double free vulnerability in common_chat_peg_mapper::map that allows unauthenticated remote attackers to corrupt heap memory via a dangling current_tool pointer. Attackers can submit a chat_parser in a POST /completion request emitting a tool-id after a tool-close tag to crash llama-server and shape a heap write primitive.

Risk Assessment

An attacker could remotely crash the server and potentially exploit the heap write primitive for code execution, leading to server takeover.

Recommendation

Update llama.cpp to version b11393 or later to eliminate the use-after-free and double free vulnerability.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

llama.cpp before b11393 contains a use-after-free and double free vulnerability in common_chat_peg_mapper::map that allows unauthenticated remote attackers to corrupt heap memory via a dangling current_tool pointer. Attackers can submit a chat_parser in a POST /completion request emitting a tool-id after a tool-close tag to crash llama-server and shape a heap write primitive.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS