{"id":"CVE-2026-43632","aliases":["CVE-2026-43632"],"related":[],"kind":"vulnerability","state":"published","title":"llama.cpp b7492–b9060 Use-After-Free in Tokenization Endpoints","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las compilaciones de llama.cpp desde la b7492 hasta la última b9060 contienen una vulnerabilidad de uso después de liberación en llama-server que afecta a seis puntos finales de tokenización (/tokenize, /detokenize, /infill, /apply-template, /rerank, y /anthropic/count_tokens) que omiten la cola de tareas y acceden directamente a ctx_server.vocab en los hilos de trabajo HTTP. Los atacantes pueden explotar una condición de carrera de tiempo de verificación-tiempo de uso donde el hilo principal destruye y libera vocab después de que se libera el bloqueo de sincronización pero antes de que el gestor termine de usarlo, causando un fallo o una posible ejecución de código cuando se configura --sleep-idle-seconds.","source":"nvd"}],"published":"2026-08-06T15:53:19.379Z","modified":"2026-10-23T21:10:00.157Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.2,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.2,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"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,"rating":"HIGH"}],"cwes":["CWE-367","CWE-416"],"affected":[{"ranges":[{"type":"custom","introduced":"b7492","lastAffected":"b9060","status":"affected"}],"vendor":"ggml-org","product":"llama.cpp","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"b7492","lastAffected":"b9060"}],"vendor":"ggml","product":"llama.cpp","cpe":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches","tags":["mitigation","patch","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/llama-cpp-b7492-b9060-use-after-free-in-tokenization-endpoints","tags":["patch","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Vladimir Tokarev (@G1ND1L4) - Vulnerability Research Tech Lead, Cyera","Ofek Itach (@ofekitach) - Security Research Team Lead, Cyera"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-08T02:09:08.150Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43632","url":"https://www.cve.org/CVERecord?id=CVE-2026-43632","licence":"CVE Terms of Use","modified":"2026-08-14T16:49:56.563Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43632","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43632","licence":"Public domain","modified":"2026-10-23T21:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:31.355Z","epss":{"score":0.00415,"percentile":0.37787,"date":"2026-12-01T12:00:22.000Z"}}