CVE-2025-32434
published critical CVSS 4.0 · 9.3PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pytorch | — | pytorch< 2.6.0 | Affected | Not stated | GitHub_M |
| Debian | bullseye | pytorch | Advisory build | 1.7.1-7+deb11u1 | DLA-4389-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pytorch | pytorch | < 2.6.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
2Provider assertions
3GitHub_M · cna
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9aaa6b9737c019ab3803fd889436475d9b0c99580778f335094b53357826dc5a
- Ingested
- 23 Sep 2026, 08:45:19 UTC
- Source record
- Official CVE record