{"id":"CVE-2026-43632","published":"2026-08-06T15:53:19Z","modified":"2026-08-14T16:49:56Z","title":"llama.cpp b7492–b9060 Use-After-Free in Tokenization Endpoints","vendor":"ggml-org","product":"llama.cpp","tier":"tail","description":{"text":"llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in llama-server affecting six tokenization endpoints (/tokenize, /detokenize, /infill, /apply-template, /rerank, and /anthropic/count_tokens) that bypass the task queue and access ctx_server.vocab directly on HTTP worker threads. Attackers can exploit a time-of-check-time-of-use race condition where the main thread destroys and frees vocab after the synchronization lock is released but before the handler finishes using it, causing a crash or potential code execution when --sleep-idle-seconds is configured.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00476,"percentile":0.42072,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches","tags":["mitigation"]},{"url":"https://www.vulncheck.com/advisories/llama-cpp-b7492-b9060-use-after-free-in-tokenization-endpoints","tags":["third-party-advisory"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":8.41},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"ggml-org","affectedVersions":[{"vendor":"ggml-org","product":"llama.cpp","versions":[">= b7492, <= b9060"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-08T02:09:08.150856Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-54287","exploited":false,"provenance":"source"}}