# PYSEC-2026-3998: vLLM before 0.29.0 validates allowed\_token\_ids against tokenizer length instead of model output logits width in SamplingParams.\_validate\_allowed\_token\_ids()

- Database: PyPA
- Published: 2026-09-18
- Modified: 2026-09-29

## Tracked as

- [CVE-2026-93840](https://cve.now/CVE-2026-93840.md): vLLM before 0.29.0 Cross-Request Logits Corruption via allowed\_token\_ids

## Affected versions

- vllm (PyPI): fixed in 0.29.0

## Description

vLLM before 0.29.0 validates allowed_token_ids against tokenizer length instead of model output logits width in SamplingParams._validate_allowed_token_ids(). Attackers can supply token IDs above the output vocabulary that pass validation, causing LogitBiasState to corrupt GPU logits state and allow concurrent requests to sample tokens outside their allowlists.

## References

- https://github.com/vllm-project/vllm/blob/v0.28.0/vllm/sampling_params.py#L881-L903
- https://github.com/vllm-project/vllm/blob/v0.28.0/vllm/v1/worker/gpu/sample/logit_bias.py#L179-L191
- https://www.vulncheck.com/advisories/vllm-before-0.29.0-cross-request-logits-corruption-via-allowed-token-ids
- https://github.com/vllm-project/vllm/commit/5b0e5b69ac1a3884a6479c9537789c95263cc804
- https://github.com/vllm-project/vllm/pull/49080
- https://github.com/vllm-project/vllm

Page: https://cve.now/PYSEC-2026-3998

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
