Critical severity · published Apr 18, 2025
CVE-2025-32434
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
9.8
CVSS
2.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
pytorch · pytorch
< 2.6.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-32434
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-32434
Vendor Advisory
https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html
More from pytorch
9.8
CVE-2024-48063
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE
8.8
CVE-2026-24747
PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
