# CVE-2026-43632: llama.cpp b7492–b9060 Use-After-Free in Tokenization Endpoints

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-08-06T15:53:19.379Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-367, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: from b7492 up to b9060
- ggml llama.cpp: from b7492 up to b9060

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches> (mitigation, patch, third-party-advisory)
- <https://www.vulncheck.com/advisories/llama-cpp-b7492-b9060-use-after-free-in-tokenization-endpoints> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-43632](https://www.cve.org/CVERecord?id=CVE-2026-43632), CVE Terms of Use, modified 2026-08-14
- NVD: [CVE-2026-43632](https://nvd.nist.gov/vuln/detail/CVE-2026-43632), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-43632 · Whole record: https://cve.day/CVE-2026-43632.json · Rebuilt by cve.day 2026-11-25T22:59:31.355Z
