PyTorch
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.6.0
Fixed in 2.6.0
Mitigation
Upgrade pytorch to 2.6.0 or later.
References
- Vendor advisory github.com/pytorch/pytorch/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 209 days after publication; not in CISA KEV. First PoC: cyhe50/cve-2025-32434-poc (created 13 Nov 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 1 pending · 1 informational · 1 suspicious or fake
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| cyhe50/cve-2025-32434-poc | 13 Nov 2025 +209 d | 0 | PoC |
| AlexanderGumeniuk/CVE-2025-32434 | 30 Jun 2026 +1.2 y | 2 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 2h3ph3rd/CVE-2025-32434 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Soildworks/Agentic-CLIP-Benchmark | 8 Mar 2026 +324 d | 0 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| B1tBit/CVE-2025-32434-exploit | 15 Dec 2025 +241 d | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.