CVE-2025-32434 PUBLISHED

PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

Assigner: GitHub_M
Reserved: 08.04.2025 Published: 18.04.2025 Updated: 18.04.2025

PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor pytorch
Product pytorch
Versions
  • Version < 2.6.0 is affected

References

Problem Types

  • CWE-502: Deserialization of Untrusted Data CWE