{"id":"CVE-2026-107183","revision":"afa46102ca51402f8515845c799873db","records":[{"revision":"afa46102ca51402f8515845c799873db","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-107183","aliases":[],"title":"llama.cpp before b11393 Use-After-Free via common_chat_peg_mapper chat_parser","description":"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.","state":0,"publishedAt":"2026-10-07T13:35:41.675+00:00","modifiedAt":"2026-10-07T14:37:12.658+00:00","affected":[{"ecosystem":"Vendor product","name":"llama.cpp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ggml-org\",\n                    \"product\": \"llama.cpp\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:github/ggml-org/llama.cpp\",\n                    \"versions\": [\n                        {\n                            \"version\": \"b8227\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\",\n                            \"lessThan\": \"b11393\"\n                        },\n                        {\n                            \"version\": \"b11393\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":9.2,"severity":"CRITICAL"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"severity":"HIGH"}],"references":["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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-107183","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-107183","identifiers":["CVE-2026-107183"]},"retained":false,"historicalAffected":[]}],"coverage":[]}