# CVE-2025-24357: vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.89%, higher than 60% of CVEs (2026-12-01)
- Published: 2025-01-27T17:38:20.070Z
- Modified: 2026-08-07T08:12:18.227Z
- Also known as: GHSA-rh4j-5rhw-hr54, PYSEC-2025-58
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vllm-project vllm: < 0.7.0
- vllm (PyPI): before 0.7.0; before d3d6bb13fb62da3234addf6574922a4ec0513d04
- vllm vllm: before 0.7.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54> (advisory, vendor-advisory, web)
- <https://github.com/vllm-project/vllm/pull/12366> (issue-tracking, patch, report, web)
- <https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2025-24357](https://www.cve.org/CVERecord?id=CVE-2025-24357), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-rh4j-5rhw-hr54](https://github.com/advisories/GHSA-rh4j-5rhw-hr54), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2025-24357](https://nvd.nist.gov/vuln/detail/CVE-2025-24357), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-58](https://osv.dev/vulnerability/PYSEC-2025-58), CC-BY-4.0, modified 2025-06-27

---

Page: https://cve.day/CVE-2025-24357 · Whole record: https://cve.day/CVE-2025-24357.json · Rebuilt by cve.day 2026-11-25T22:58:53.619Z
