Skip to content
HighVulnerabilityLLM-specific

CVE-2026-43632: llama.cpp llama-server use-after-free in tokenization endpoints

Identifier
CVE-2026-43632
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

llama.cpp builds b7492 through the latest b9060 contain a use-after-free in llama-server, affecting six tokenization endpoints: /tokenize, /detokenize, /infill, /apply-template, /rerank and /anthropic/count_tokens. These handlers bypass the task queue and read ctx_server.vocab directly on HTTP worker threads, and a time-of-check-time-of-use race lets the main thread free vocab before the handler finishes, causing a crash or potential code execution when --sleep-idle-seconds is configured.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.