CVE-2025-62164: vLLM deserialization vulnerability leading to DoS and potential RCE
vLLM 0.10.2 up to 0.11.0 can be crashed, and possibly taken over, through the Completions API. User-supplied prompt embeddings are loaded with `torch.load()` and a malformed sparse tensor triggers an out-of-bounds memory write in `to_dense()`. Any user with API access can send it. Upgrade to vLLM 0.11.1.
Published Nov 20, 2025 · Updated Jul 17, 2026 · Analysis Nov 1, 2026
What an attacker can do
The Completions endpoint accepts prompt embeddings as base64 data. _load_and_validate_embed in vllm/entrypoints/renderer.py decodes them and calls torch.load(..., weights_only=True), checks that the result is a tensor of float32, bfloat16 or float16, and then calls tensor.to_dense().
Since PyTorch 2.8.0, loading sparse tensors no longer runs integrity checks by default. Those checks only run inside the torch.sparse.check_sparse_tensor_invariants context manager. A crafted sparse tensor with bad indices therefore passes the bounds checks, and to_dense() writes outside the allocated memory.
The attacker needs only the ability to send requests to the Completions API. CVSS lists low privileges, meaning an API key if you use one. The sure result is a crash of the vLLM server process, which is a denial of service for every user of that server. The advisory says remote code execution in the server process is possible, but gives no working exploit. The danger is highest for shared or internet-facing deployments, and for any setup that deserializes untrusted or model-provided payloads.
Who is affected
vLLM from 0.10.2 up to, but not including, 0.11.1. Earlier versions are outside the range this advisory covers. Exposure depends on the Completions API being reachable by users you do not fully trust, and on PyTorch 2.8.0 or later, where the sparse check default changed.
pip show vllm
pip show torchvllm
- Ecosystem
- PyPI
- Affected
- >= 0.10.2, < 0.11.1
- Fixed in
- 0.11.1
- Check
pip show vllm
How to fix it
Upgrade to vLLM 0.11.1:
pip install --upgrade "vllm>=0.11.1"The fix is pull request 27204. The advisory names no workaround. As a stopgap, put authentication in front of the server, restrict who can reach the API, and block or strip the prompt-embeddings field at a gateway if your users do not need it.
How to tell if you were hit
A crash of the vLLM server process (segmentation fault, abnormal exit, or an orchestrator restart loop) right after a /v1/completions request is the main sign. Look in API logs for requests that carry a prompt_embeds field from clients that normally send text prompts. Check the host for unexpected child processes, new files or outbound connections from the vLLM process in case the memory write was turned into code execution. Confirm the version with pip show vllm.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to omriaxion, russellb, DarkLight1337, Isotr0py, ywang96, davidatom.
Questions
- Which vLLM versions are affected by CVE-2025-62164?
From 0.10.2 up to, but not including, 0.11.1. The patched release is 0.11.1.
- Does the weights_only=True flag protect against this?
No. That flag blocks arbitrary pickle objects, but from PyTorch 2.8.0 it no longer validates sparse tensor structure by default, so a malformed tensor reaches
to_dense()and writes out of bounds.- Is remote code execution confirmed?
The advisory says the memory corruption can crash vLLM and potentially lead to code execution. It states no working RCE exploit. A denial of service is the realistic minimum.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-mrw7-hf4f-83pf
- https://github.com/advisories/GHSA-mrw7-hf4f-83pf
- https://github.com/vllm-project/vllm/pull/27204
- https://github.com/vllm-project/vllm/commit/58fab50d82838d5014f4a14d991fdb9352c9c84b
- https://nvd.nist.gov/vuln/detail/CVE-2025-62164
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-2018.yaml
- https://github.com/vllm-project/vllm
- https://pypi.org/project/vllm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More vLLM vulnerabilities
All vLLM entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
