Skip to content
OpenAdvisories
High · 8.1 CVE-2026-107183 EUVD-2026-94330GHSA-3g9g-qh2j-c5q8

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

Published Oct 7, 2026 · Updated Oct 7, 2026 · 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 products

VendorProductAffectedFixed
ggml-org llama.cpp b8227 – < b11393 b11393

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 llama.cpp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 llama.cpp No fix yet —
Ubuntu 26.04 LTS llama.cpp No fix yet —

References