CVE-2025-24357
vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator
Reported by github_m · Published January 27, 2025
vllm is fixed in d3d6bb13fb62da3234addf6574922a4ec0513d04 and 0.7.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vllm | PyPI | d3d6bb13fb62da3234addf6574922a4ec0513d04, 0.7.0 |
| tritonserver-backend-vllm-24.04 | Chainguard | 24.04-r9 |
| vllm | vllm | 0.7.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vllm-project | vllm | < 0.7.0 |
| PyPI | vllm | 0 |
| chainguard | tritonserver-backend-vllm-24.04 | 0 |
| vllm-project | vllm | 0 |
| chainguard | py3.10-vllm-cuda-11.8 | 0 |
| chainguard | py3.10-vllm-cuda-12.6 | 0 |
Timeline
- Jan 24, 2025 Fix PR Merged
- Jan 27, 2025 CVE Published
- Jan 27, 2025 Coalition ESS Score (10 in total, the first dated here)
- Jan 28, 2025 EPSS Score (30 in total, the first dated here)
- Feb 12, 2025 CVE Updated
- Dec 20, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-24357
vulnetix vdb fixes CVE-2025-24357
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-24357/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54 x_refsource_CONFIRM
- https://github.com/vllm-project/vllm/pull/12366 x_refsource_MISC
- https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04 x_refsource_MISC
- https://pytorch.org/docs/stable/generated/torch.load.html x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-24357 advisory
- https://github.com/advisories/GHSA-rh4j-5rhw-hr54 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-58.yaml advisory
- https://github.com/vllm-project/vllm url
- https://github.com/vllm-project/vllm/releases/tag/v0.7.0 url