Use After Free in Ggml-Org Llama.cpp
CVE-2026-107183
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.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/ggml-org/llama.cpp/pull/29942 (issue-tracking, patch)
- github.com/ggml-org/llama.cpp/commit/dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f (patch)
- github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/com… (technical-description)
- github.com/ggml-org/llama.cpp/blob/bed0a856606ee4a24a164066f73d2379447033f5/too… (technical-description)
- github.com/ggml-org/llama.cpp (product)
- www.vulncheck.com/advisories/llama-cpp-before-b11393-use-after-free-via-common-… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-107183?
- CVE-2026-107183 is a high-severity vulnerability in Ggml-Org Llama.cpp, classified under Use After Free. CVSS score: 8.1/10. Published 2026-10-07.
- How severe is CVE-2026-107183?
- High severity. CVSS v3 base score is 8.1 out of 10.