CVE-2026-54235
JSON

6.9medium

vLLM: temperature=NaN and temperature=Infinity bypass validation and propagate to GPU kernels

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7h4p-rffg-7823PYSEC-2026-3405

Description

vLLM is an inference and serving engine for large language models (LLMs). Prior to 0.23.1rc0, ll temperature validation gates use comparison operators (<, >), which silently evaluate to False for NaN and for positive Infinity in Python's IEEE 754 float semantics. Both values pass every guard and propagate to GPU sampling kernels, where they produce undefined behavior or CUDA errors that can crash the inference worker. This vulnerability is fixed in 0.23.1rc0.

Affected

Product or packageVersionsReported by
vllm-project vllm< 0.23.1rc0CVE List
vllm (PyPI)from 0.8.5 before 0.24.0, up to 0.23.0GitHub Advisory Database, PyPA Advisory Database
vllm vllmbefore 0.23.1NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-1287

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

vLLM is an inference and serving engine for large language models (LLMs). Prior to 0.23.1rc0, ll temperature validation gates use comparison operators (<, >), which silently evaluate to False for NaN and for positive Infinity in Python's IEEE 754 float semantics. Both values pass every guard and propagate to GPU sampling kernels, where they produce undefined behavior or CUDA errors that can crash the inference worker. This vulnerability is fixed in 0.23.1rc0.

GitHub Advisory Database

Summary

All temperature validation gates use comparison operators (<, >), which silently evaluate to False for NaN and for positive Infinity in Python's IEEE 754 float semantics. Both values pass every guard and propagate to GPU sampling kernels, where they produce undefined behavior or CUDA errors that can crash the inference worker. Note: -Infinity is correctly caught.

Root Cause

sampling_params.py:384:

if 0 < self.temperature < _MAX_TEMP:  # NaN → False; +Inf → False

sampling_params.py:462:

if self.temperature < 0.0:            # NaN → False; +Inf → False
    raise VLLMValidationError(...)

No math.isnan() or math.isinf() check exists anywhere in sampling_params.py.

Python semantics (verified): float('nan') < 0.0 → False, float('inf') < 0.0 → False.

Impact

Crash of inference worker on GPU kernel execution with NaN/Inf softmax input, degrading service for all concurrent users.

Remediation

Add math.isfinite(self.temperature) check in _verify_args(). Reject non-finite float values with a 400 error.

Fix

A fix for this vulnerability was merged here: https://github.com/vllm-project/vllm/pull/45116

NVD (es)

vLLM es un motor de inferencia y servicio para modelos de lenguaje grandes (LLMs). Antes de 0.23.1rc0, las compuertas de validación de temperatura de ll usan operadores de comparación (<, >), que se evalúan silenciosamente como Falso para NaN y para Infinito positivo en la semántica de punto flotante IEEE 754 de Python. Ambos valores pasan cada protección y se propagan a los kernels de muestreo de GPU, donde producen un comportamiento indefinido o errores de CUDA que pueden bloquear el trabajador de inferencia. Esta vulnerabilidad está corregida en 0.23.1rc0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54235 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-7h4p-rffg-7823 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54235 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-3405 changed 2026-07-13CC-BY-4.0