CVE-2026-107183ggml-org llama.cpp
Use-after-free and double free in llama.cpp without authentication
Critical 9.2 No auth needed
Follow: this CVE · ggml-org · ggml-org llama.cpp We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Auth required
- No
- Published
- Oct 7, 2026
- Updated
- Oct 7, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
llama.cpp before b11393 contains use-after-free and double free vulnerabilities in common_chat_peg_mapper::map that allow unauthenticated remote attackers to corrupt heap memory. An attacker can submit a chat_parser in a POST /completion request with a tool-id after a tool-close tag to crash llama-server and create a heap write primitive.
Show the original NVD text
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.
What to do
Patch available · fixed versions: b11393
Update llama.cpp to version b11393 or later that includes the fix for the use-after-free and double free vulnerabilities.
- Apply the vendor's security update for llama.cpp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- ggml-org · llama.cpp
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.