CVE-2026-43632CWE-367CWE-416

CVE-2026-43632

High · published August 7, 2026

CVSS v3.1
8.1
EPSS
0%
Percentile
40.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00476 · 40.2th percentile
Weaknesses
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition; CWE-416 · Use After Free
Published
2026-08-07T02:17Z
Affected products (1)
ProductVersionsFixed in
ggml/llama.cpp≥ b7492, ≤ b9060—
References (2)
EPSS history
Timeline
  • 06 AUG 15:53Z
    llama.cpp b7492–b9060 Use-After-Free in Tokenization Endpoints
    cvelistv5