CVE-2026-107183: Vulnerability in Ggml-org Llama.cpp
Critical. 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.
CWE-416
- Exploitation
- None confirmed
- Severity
- 9.2 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- 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
- Weakness
- CWE-416
- Published
- 7 Oct 2026
- Last change
- 7 Oct 2026
Affected products
Affected versions and the first fixed release
- Ggml-org Llama.cpp From b8227 before b11393. Fixed in b11393
Advisories
Vendor and security advisories
- github.com/ggml-org/llama.cpp
- github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/common/chat...
- github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/tools/serve...
- vulncheck.com/advisories/llama-cpp-before-b11393-use-after-free-via-common-chat-peg-map...
Patches and fixes
Updates, commits and release notes
- github.com/ggml-org/llama.cpp/commit/dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f
- github.com/ggml-org/llama.cpp/pull/29942
Related
- Llama.cpp vulnerabilities Recent advisories, watch this product