CVE-2026-107183
JSON

9.2critical

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

Severity
9.2critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.42% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
ggml-org llama.cppfrom b8227 before b11393
Not affected: b11393
CVE List

All scores

VulnCheck9.2critical CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-107183 changed 2026-10-07CVE Terms of Use
NVDCVE-2026-107183 changed 2026-10-07Public domain