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

Published Oct 7, 2026
·
Updated

llama.cpp before b11393 contains a use-after-free and double free vulnerability in commonchatpegmapper::map that allows unauthenticated remote attackers to corrupt heap memory via a dangling currenttool pointer. Attackers can submit a chatparser 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 Software

1 affected component
Llama.cpp llama.cpp<b11393

Event History

Oct 7, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments running llama.cpp before b11393 with llama-server reachable over the network are exposed if an attacker can send POST requests to the /completion endpoint. The attack does not require authentication or user interaction.

2

What request content is required to trigger the flaw?

An attacker must submit a chat_parser that emits a tool-id after a tool-close tag. This leaves a dangling current_tool pointer in common_chat_peg_mapper::map, leading to use-after-free and double-free behavior.

3

What is the likely impact of successful exploitation?

Successful exploitation can crash llama-server and corrupt heap memory. The reported behavior can also give an attacker the ability to shape a heap write primitive, with high confidentiality, integrity, and availability impact.

4

How can I determine whether an instance needs remediation?

Check whether the deployed llama.cpp version is earlier than b11393 and whether llama-server accepts POST /completion requests. Instances meeting both conditions should be treated as affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203