CVE-2025-62164
JSON

8.8high

VLLM deserialization vulnerability leading to DoS and potential RCE

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.96% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mrw7-hf4f-83pfPYSEC-2026-2018

Description

vLLM is an inference and serving engine for large language models (LLMs). From versions 0.10.2 to before 0.11.1, a memory corruption vulnerability could lead to a crash (denial-of-service) and potentially remote code execution (RCE), exists in the Completions API endpoint. When processing user-supplied prompt embeddings, the endpoint loads serialized tensors using torch.load() without sufficient validation. Due to a change introduced in PyTorch 2.8.0, sparse tensor integrity checks are disabled by default. As a result, maliciously crafted tensors can bypass internal bounds checks and trigger an out-of-bounds memory write during the call to to_dense(). This memory corruption can crash vLLM and potentially lead to code execution on the server hosting vLLM. This issue has been patched in version 0.11.1.

Affected

Product or packageVersionsReported by
vllm-project vllm>= 0.10.2, < 0.11.1CVE List
vllm (PyPI)from 0.10.2 before 0.11.1GitHub Advisory Database, PyPA Advisory Database
vllm vllmfrom 0.10.2 before 0.11.1, 0.11.1NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-20CWE-123CWE-502CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

vLLM is an inference and serving engine for large language models (LLMs). From versions 0.10.2 to before 0.11.1, a memory corruption vulnerability could lead to a crash (denial-of-service) and potentially remote code execution (RCE), exists in the Completions API endpoint. When processing user-supplied prompt embeddings, the endpoint loads serialized tensors using torch.load() without sufficient validation. Due to a change introduced in PyTorch 2.8.0, sparse tensor integrity checks are disabled by default. As a result, maliciously crafted tensors can bypass internal bounds checks and trigger an out-of-bounds memory write during the call to to_dense(). This memory corruption can crash vLLM and potentially lead to code execution on the server hosting vLLM. This issue has been patched in version 0.11.1.

GitHub Advisory Database
Summary

A memory corruption vulnerability that leading to a crash (denial-of-service) and potentially remote code execution (RCE) exists in vLLM versions 0.10.2 and later, in the Completions API endpoint. When processing user-supplied prompt embeddings, the endpoint loads serialized tensors using torch.load() without sufficient validation.

Due to a change introduced in PyTorch 2.8.0, sparse tensor integrity checks are disabled by default. As a result, maliciously crafted tensors can bypass internal bounds checks and trigger an out-of-bounds memory write during the call to to_dense(). This memory corruption can crash vLLM and potentially lead to code execution on the server hosting vLLM.

Details

A vulnerability that can lead to RCE from the completions API endpoint exists in vllm, where due to missing checks when loading user-provided tensors, an out-of-bounds write can be triggered. This happens because the default behavior of torch.load(tensor, weights_only=True) since pytorch 2.8.0 is to not perform validity checks for sparse tensors, and this needs to be enabled explicitly using the torch.sparse.check_sparse_tensor_invariants context manager.

The vulnerability is in the following code in vllm/entrypoints/renderer.py:148

    def _load_and_validate_embed(embed: bytes) -> EngineEmbedsPrompt:
        tensor = torch.load(
            io.BytesIO(pybase64.b64decode(embed, validate=True)),
            weights_only=True,
            map_location=torch.device("cpu"),
        )
        assert isinstance(tensor, torch.Tensor) and tensor.dtype in (
            torch.float32,
            torch.bfloat16,
            torch.float16,
        )
        tensor = tensor.to_dense()

Because of the missing checks, loading invalid prompt embedding tensors provided by the user can cause an out-of-bounds write in the call to to_dense .

Impact

All users with access to this API are able to exploit this vulnerability. Unsafe deserialization of untrusted input can be abused to achieve DoS and potentially remote code execution (RCE) in the vLLM server process. This impacts deployments running vLLM as a server or any instance that deserializes untrusted/model-provided payloads.

Fix

https://github.com/vllm-project/vllm/pull/27204

Acknowledgements

Finder: AXION Security Research Team (Omri Fainaro, Bary Levy): discovery and coordinated disclosure.

NVD (es)

vLLM es un motor de inferencia y servicio para modelos de lenguaje grandes (LLM). Desde las versiones 0.10.2 hasta la 0.11.1, existe una vulnerabilidad de corrupción de memoria que podría conducir a un fallo (denegación de servicio) y potencialmente a ejecución remota de código (RCE) en el endpoint de la API de Completions. Al procesar incrustaciones de prompt proporcionadas por el usuario, el endpoint carga tensores serializados utilizando torch.load() sin validación suficiente. Debido a un cambio introducido en PyTorch 2.8.0, las comprobaciones de integridad de tensores dispersos están deshabilitadas por defecto. Como resultado, los tensores creados maliciosamente pueden eludir las comprobaciones de límites internas y desencadenar una escritura de memoria fuera de límites durante la llamada a to_dense(). Esta corrupción de memoria puede provocar el fallo de vLLM y potencialmente conducir a la ejecución de código en el servidor que aloja vLLM. Este problema ha sido parcheado en la versión 0.11.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62164 changed 2025-11-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-mrw7-hf4f-83pf changed 2026-09-10CC-BY-4.0
NVDCVE-2025-62164 changed 2026-10-19Public domain
PyPA Advisory DatabasePYSEC-2026-2018 changed 2026-07-07CC-BY-4.0