8.1High

CVE-2026-107183llama.cpp before b11393 Use-After-Free via common_chat_peg_mapper chat_parser

ggml-org llama.cpp Published: (1 month ago)

Description

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.

Weakness (CWE): CWE-416

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ggml llama.cpp b8227 – < b11393
ggml-org llama.cpp b8227 – < b11393, fixed b11393

References and patches