CVE-2026-107183 PUBLISHED

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

Assigner: VulnCheck
Reserved: 07.10.2026 Published: 07.10.2026 Updated: 07.10.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.2

Product Status

Vendor ggml-org
Product llama.cpp
Versions Default: unaffected
  • affected from b8227 to b11393 (excl.)
  • Version b11393 is unaffected

Credits

  • Anas finder

References

Problem Types

  • Use After Free CWE