CVE-2025-32434Published Apr 18, 2025 · Apr 18Updated Oct 28
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
pytorch
Critical9.3Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| torch PyPI |
|
|
Original 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.
From the CVE record · GitHub_M