Deserialization of Untrusted Data in vLLM - CVE-2025-24357

 

Deserialization of Untrusted Data in vLLM - CVE-2025-24357

Published: January 27, 2025 / Updated: May 1, 2026


Vulnerability identifier: #VU128755
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-24357
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: vLLM
Affected software:
vLLM

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to deserialization of untrusted data in hf_model_weights_iterator in vllm/model_executor/weight_utils.py when loading a model checkpoint downloaded from Hugging Face with torch.load. A remote attacker can supply a malicious model checkpoint to execute arbitrary code.

User interaction is required to fetch the pretrained repository remotely.


How to mitigate CVE-2025-24357

Install security update from vendor's website.

Sources