Critical severity · published Apr 18, 2025
CVE-2025-32434
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system
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 · Linuxfoundation
before 2.6.0 · source: 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
9.8
CVE-2022-45907
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely
8.8
CVE-2026-24747
PyTorch is a Python package that provides tensor computation
7.8
CVE-2026-4538
PyTorch pt2 Loading deserialization
7.8
CVE-2024-31583
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp
