CVE-2025-32434: PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Vulnerability summary
CVE-2025-32434 is a critical (CVSS 9.8) Deserialization of Untrusted Data vulnerability in linuxfoundation pytorch. EPSS estimates a 2.37% chance of exploitation in the next 30 days, higher than 84.3% of scored vulnerabilities.
Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 18-04-2025PublishedVulnerability first disclosed.
- 01-12-2025Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- OSV · ChainguardEcosystem advisory · calculated9.3CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST9.3CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.37%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- py3.10-torch-2.3-cuda-12.4All versions (No fix recorded)
Debian1 product
- pytorch< 1.7.1-7+deb11u1 | All versions (No fix recorded) | < 2.6.0+dfsg-1
Linuxfoundation1 product
- pytorch< 2.6.0
PyPI1 product
- torch< 2.6.0
Pytorch1 product
- pytorch< 2.6.0
5 vendors · 5 products
References
8 links- github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6X Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/pytorch/pytorchPACKAGE