Skip to content

CVE-2025-32434 PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

CriticalCVSS 9.3 EPSS 2.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Debian

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.

Upgrade path

8 packages: 6 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
debian/pytorch(Debian 12) = 1.13.1+dfsg-4; = 1.13.1+dfsg-5; = 2.0.1+dfsg-1; = 2.0.1+dfsg-1~exp1 +35 more No fix listed No fix yet
azure linux pytorch(Azure Linux 3.0) < 2.2.2-6 2.2.2-6 Fixed
cbl-mariner pytorch(CBL-Mariner 2.0) < 2.0.0-8 2.0.0-8 Fixed
debian/pytorch(Debian 13) < 2.6.0+dfsg-1 2.6.0+dfsg-1 Fixed
debian/pytorch(Debian 14) < 2.6.0+dfsg-1 2.6.0+dfsg-1 Fixed
linuxfoundation pytorch < 2.6.0 2.6.0 Fixed
pypi torch(PyPI) < 2.6.0; = 1.0.0; = 1.0.1; = 1.1.0 +35 more 2.6.0 Fixed
pytorch = < 2.6.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi torch(PyPI) < 2.6.0 2.6.0
pypi torch(PyPI) = 1.0.0 No fix listed
pypi torch(PyPI) = 1.0.1 No fix listed
pypi torch(PyPI) = 1.1.0 No fix listed
pypi torch(PyPI) = 1.10.0 No fix listed
pypi torch(PyPI) = 1.10.1 No fix listed
pypi torch(PyPI) = 1.10.2 No fix listed
pypi torch(PyPI) = 1.11.0 No fix listed
pypi torch(PyPI) = 1.12.0 No fix listed
pypi torch(PyPI) = 1.12.1 No fix listed
pypi torch(PyPI) = 1.13.0 No fix listed
pypi torch(PyPI) = 1.13.1 No fix listed
pypi torch(PyPI) = 1.2.0 No fix listed
pypi torch(PyPI) = 1.3.0 No fix listed
pypi torch(PyPI) = 1.3.1 No fix listed
pypi torch(PyPI) = 1.4.0 No fix listed
pypi torch(PyPI) = 1.5.0 No fix listed
pypi torch(PyPI) = 1.5.1 No fix listed
pypi torch(PyPI) = 1.6.0 No fix listed
pypi torch(PyPI) = 1.7.0 No fix listed
pypi torch(PyPI) = 1.7.1 No fix listed
pypi torch(PyPI) = 1.8.0 No fix listed
pypi torch(PyPI) = 1.8.1 No fix listed
pypi torch(PyPI) = 1.9.0 No fix listed
pypi torch(PyPI) = 1.9.1 No fix listed
Show 59 more
ProductAffected versionsFixed in
pypi torch(PyPI) = 2.0.0 No fix listed
pypi torch(PyPI) = 2.0.1 No fix listed
pypi torch(PyPI) = 2.1.0 No fix listed
pypi torch(PyPI) = 2.1.1 No fix listed
pypi torch(PyPI) = 2.1.2 No fix listed
pypi torch(PyPI) = 2.2.0 No fix listed
pypi torch(PyPI) = 2.2.1 No fix listed
pypi torch(PyPI) = 2.2.2 No fix listed
pypi torch(PyPI) = 2.3.0 No fix listed
pypi torch(PyPI) = 2.3.1 No fix listed
pypi torch(PyPI) = 2.4.0 No fix listed
pypi torch(PyPI) = 2.4.1 No fix listed
pypi torch(PyPI) = 2.5.0 No fix listed
pypi torch(PyPI) = 2.5.1 No fix listed
cbl-mariner pytorch(CBL-Mariner:2.0) < 2.0.0-8 2.0.0-8
azure linux pytorch(Azure Linux:3.0) < 2.2.2-6 2.2.2-6
debian/pytorch(Debian:12) All versions No fix listed
debian/pytorch(Debian:12) = 1.13.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 1.13.1+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1~exp2 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-2 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-3 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-4 No fix listed
debian/pytorch(Debian:12) = 2.12.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.4.1-1 No fix listed
debian/pytorch(Debian:12) = 2.4.1-3 No fix listed
debian/pytorch(Debian:12) = 2.4.1-4 No fix listed
debian/pytorch(Debian:12) = 2.5.0+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-3 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-3 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-7 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-8 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-9 No fix listed
debian/pytorch(Debian:12) = 2.6.0~rc9+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.0+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:12) = 2.9.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.1+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:13) < 2.6.0+dfsg-1 2.6.0+dfsg-1
debian/pytorch(Debian:14) < 2.6.0+dfsg-1 2.6.0+dfsg-1
pytorch = < 2.6.0 No fix listed
linuxfoundation pytorch < 2.6.0 2.6.0

References