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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107183.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "b8227"
},
{
"fixed": "b11393"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107183.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"308216364697324484749088518035663214366",
"240191676189210167879116824278728660313",
"59662557507227658987295402056400889057",
"304667941679696769735062995624446687780"
],
"threshold": 0.9
},
"id": "CVE-2026-107183-004abfff",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f",
"target": {
"file": "common/chat-peg-parser.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "102633876606529004953683791201288525021",
"length": 3448
},
"id": "CVE-2026-107183-ff1bf023",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/dbe4c3ed42343f0a7ba0fd7e808ffeaca404d29f",
"target": {
"file": "common/chat-peg-parser.cpp",
"function": "common_chat_peg_mapper::map"
}
}
]
"2026-10-28T11:04:06Z"