9.3Critical
CVE-2025-32434PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Description
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.
Weakness (CWE):
CWE-502
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| linuxfoundation | pytorch | < 2.6.0 | |
| pytorch | pytorch | < 2.6.0 |
References and patches
CPE matches (NVD) (1)
cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*< 2.6.0