VDB
Sign up
MEDIUM6.5

PYSEC-2026-4347

Quick fix

PYSEC-2026-4347 — vllm: upgrade to the fixed version with the command below.

pip install --upgrade 'vllm>=0.32.0'

Details

vLLM is an inference and serving engine for large language models. Prior to 0.32.0, vllm/tokenizers/hf.py computes max_token_id with an off-by-one upper bound, allowing a pre-tokenized prompt ID equal to the vocabulary size to pass validation. For a tensor-parallel size of one and an exact multiple-of-64 vocabulary, VocabParallelEmbedding.forward does not mask that value before F.embedding uses it, causing a CUDA device-side assertion and terminating the engine. This issue is fixed in version 0.32.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vllm
Introduced in: 0Fixed in: 0.32.0
Fixpip install --upgrade 'vllm>=0.32.0'

References