Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vllm
  4. ›
  5. CVE-2025-24357

CVE-2025-24357: vllm: Malicious model to RCE by torch.load in hf_model_weights_iterator

January 27, 2025 (updated March 20, 2025)

The vllm/model_executor/weight_utils.py implements hf_model_weights_iterator to load the model checkpoint, which is downloaded from huggingface. It use torch.load function and weights_only parameter is default value False. There is a security warning on https://pytorch.org/docs/stable/generated/torch.load.html, when torch.load load a malicious pickle data it will execute arbitrary code during unpickling.

References

  • github.com/advisories/GHSA-rh4j-5rhw-hr54
  • github.com/vllm-project/vllm
  • github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04
  • github.com/vllm-project/vllm/pull/12366
  • github.com/vllm-project/vllm/releases/tag/v0.7.0
  • github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54
  • nvd.nist.gov/vuln/detail/CVE-2025-24357
  • pytorch.org/docs/stable/generated/torch.load.html

Code Behaviors & Features

Detect and mitigate CVE-2025-24357 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/vllm/CVE-2025-24357.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 12:14:33 +0000.