CVE-2025-24357CWE-502

vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator

High · published January 27, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
58.3
In the wild
Unconfirmed
What it is

vLLM is a library for LLM inference and serving. vllm/model_executor/weight_utils.py implements hf_model_weights_iterator to load the model checkpoint, which is downloaded from huggingface. It uses the torch.load function and the weights_only parameter defaults to False. When torch.load loads malicious pickle data, it will execute arbitrary code during unpickling. This vulnerability is fixed in v0.7.0.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00868 · 58.3th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2025-01-27T17:38Z
EPSS history
Timeline
  • 27 JAN 17:38Z
    vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator
    cvelistv5