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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pytorch | pytorch | < 2.6.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pytorch | 2.6.0+dfsg-1 | — |
| Debian 13 | pytorch | 2.6.0+dfsg-1 | — |
| Debian 12 | pytorch | No fix yet | — |
| Debian 11 | pytorch | 1.7.1-7+deb11u1 | DLA-4389-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pytorch | 2.2.2-6 | — |
| Azure Linux 2 (CBL-Mariner) | pytorch | 2.0.0-8 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 4 repositories
-
AlexanderGumeniuk/CVE-2025-32434 ★ 2 · Jun 30, 2026
-
B1tBit/CVE-2025-32434-exploit ★ 1 · Dec 15, 2025
A script for exploiting a vulnerability in PyTorch with subsequent RCE in library versions < 2.6.0
-
Soildworks/Agentic-CLIP-Benchmark ★ 0 · Mar 8, 2026
An automated, high-precision zero-shot evaluation pipeline for OpenAI's CLIP model on CIFAR-10. Features 88.80% accuracy, Safetensors security mitigation (CVE-2025-32434), and AI Native (Trae) workfl…
-
cyhe50/cve-2025-32434-poc ★ 0 · Nov 13, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | torch | < 2.6.0 | 2.6.0 | GHSA-53q9-r3pm-6pq6 |
Advisories 2
- WID-SEC-2025-0857 PyTorch: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Mar 19, 2026
- DLA-4389-1 pytorch - security update Debian Security (DSA / DLA) · Dec 1, 2025