CVE-2025-24357
HIGH 8.8CVSS 3.1vllm: Malicious model to RCE by torch.load in hf_model_weights_iterator
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.
- Published
- 27 Jan 2025
- Last modified
- 7 Aug 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-502
- Also known as
- GHSA-rh4j-5rhw-hr54PYSEC-2025-58
- Sources
- NVDJSONOSV GHSA-rh4j-5rhw-hr54JSONOSV PYSEC-2025-58JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vllm | vllmcpe:2.3:a:vllm:vllm:*:*:*:*:*:*:*:* |
< 0.7.0 | 0.7.0 |
| OSV | PyPI | vllm | < 0.7.0 | 0.7.0 |
References
- https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04 · Patch, WEB, FIX
- https://github.com/vllm-project/vllm/pull/12366 · Issue Tracking, Patch, WEB, REPORT
- https://github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54 · Vendor Advisory, WEB, ADVISORY
- https://pytorch.org/docs/stable/generated/torch.load.html · Technical Description, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-24357 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-58.yaml · WEB
- https://github.com/vllm-project/vllm · PACKAGE
- https://github.com/vllm-project/vllm/releases/tag/v0.7.0 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Jan 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Jan 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Jan 2025)