CVE-2026-107183
CVE-2026-107183 · llama.cpp before b11393 Use-After-Free via common_chat_peg_mapper chat_parser
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.2 · Critical · EPSS 0.4%
- Published
- Updated
Stack: system
Affected products and versions
llama.cpp
- Versions
- ≥ b8227, < b11393: Affected (custom)
- b11393: Not affected (custom)
No fix published
llama.cpp Debian:14
- Versions
- 10108+dfsg-1
- 10108+dfsg1-1
- 10108+dfsg1-2
- 10192+dfsg-1
- 10192+dfsg-2
- 10192+dfsg-2~exp1
- 10271+dfsg-1
- 10344+dfsg-1
- 10438+dfsg-1
- 1:0.1.2+dfsg-1~exp1
- 1:0.2.0+dfsg1-1
- 1:0.2.0+dfsg1-1~exp1
- 1:0.4.0+dfsg-1
- 1:0.4.1+dfsg-1
- 1:0.5.0+dfsg-1
- 1:0.5.0+dfsg-2
- 5151+dfsg-1~exp2
- 5151+dfsg-1~exp3
- 5318+dfsg-1
- 5318+dfsg-2
- 5713+dfsg-1
- 5760+dfsg-1
- 5760+dfsg-2
- 5760+dfsg-3
- 5760+dfsg-4
- 5882+dfsg-1
- 5882+dfsg-2
- 5882+dfsg-3
- 5882+dfsg-3~exp1
- 5882+dfsg-3~exp2
- 5882+dfsg-3~exp3
- 5882+dfsg-4
- 6641+dfsg-1
- 6641+dfsg-2
- 6641+dfsg-3
- 7593+dfsg-1
- 7593+dfsg-2
- 7593+dfsg-3
- 7965+dfsg-1
- 8064+dfsg-1
- 8064+dfsg-2
- 8461+dfsg-1
- 8611+dfsg-1
- 8681+dfsg-1
- 8870+dfsg-1
- 8941+dfsg-1
- 9009+dfsg-1
- 9071+dfsg-1
- 9190+dfsg-1
- 9413+dfsg-1
- 9555+dfsg-1
- 9601+dfsg-1
- 9721+dfsg-1
- 9895+dfsg-1
- 9895+dfsg-2
- 9895+dfsg-3
- 9951+dfsg-1
- 9951+dfsg-2
- 9951+dfsg-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
llama.cpp Ubuntu:26.10
- Versions
- 8681+dfsg-1
- 9721+dfsg-1ubuntu1
- 10438+dfsg-1
- 10438+dfsg-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
llama.cpp Ubuntu:26.04:LTS
- Versions
- 5882+dfsg-2
- 8064+dfsg-1ubuntu1
- 8681+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/ggml-org/llama.cpp/pull/29942
- https://github.com/ggml-org/llama.cpp/commit/dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f
- https://github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/common/chat-peg-parser.cpp#L343-L355
- https://github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/tools/server/server-schema.cpp#L321-L324
- https://github.com/ggml-org/llama.cpp
- https://www.vulncheck.com/advisories/llama-cpp-before-b11393-use-after-free-via-common-chat-peg-mapper-chat-parser
- https://nvd.nist.gov/vuln/detail/CVE-2026-107183