CVE-2025-32434
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
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.
INFO
Published Date :
April 18, 2025, 4:15 p.m.
Last Modified :
Dec. 1, 2025, 7:16 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 4.0 | CRITICAL | [email protected] |
Solution
- Update PyTorch to version 2.6.0.
- Verify the updated PyTorch version.
Public PoC/Exploit Available at Github
CVE-2025-32434 has a 46 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-32434.
| URL | Resource |
|---|---|
| https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6 | Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-32434 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-32434
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Benchmarking CLIP on semiconductor-style wafer defects with uncertainty and calibration analysis.
Python
None
Python
None
Shell Python
None
Python Shell
None
Python
None
Jupyter Notebook
A comprehensive benchmarking framework for comparing BERT model variants on inference speed, memory efficiency, and model size. Designed for compute-constrained environments and on-premise deployments.
Python Batchfile
Complete Windows-optimized workflow for voice cloning with StyleTTS2. Features enhanced stem separation, batch processing, and dataset preparation tools.
demucs gpu gradio machine-learning pytorch stem-separation styletts2 text-to-speech voice-cloning windows
PowerShell Python Batchfile
no now
Python
Flexible UD NLP Pipeline
Python C++ CMake
a real-time retrieval multimodial AI based demo that allows a visual input such as a webcam into a CLIP-powered object recognizer with a small, yet sufficient self-growing memory and adjustable text-prototype fusion.
Python Shell
None
Batchfile Python
translator that preserves prosodical & audio features.
Jupyter Notebook
A cross-language open-source fine-tuning platform that bridges .NET engineering with Python AI ecosystems — empowering developers to train, distill, and manage LLMs locally with full lifecycle and dataset standards.
Python C# HTML CSS JavaScript PowerShell Shell
可以构建自己的知识库的问答系统,3090可跑,更低显卡需要量化,可以自行修改代码
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-32434 vulnerability anywhere in the article.
-
Kaspersky
Update PyTorch ASAP | Kaspersky official blog
vulnerability Researchers have found a way to exploit a security mechanism in a popular machine-learning framework. April 22, 2025 A researcher has discovered a vulnerability in PyTorch – an open-sour ... Read more
-
The Cyber Express
Critical Security Vulnerability Found in WordPress Plugin InstaWP Connect
The Moroccan authorities have warned users of a critical vulnerability in the popular WordPress plugin, InstaWP Connect. The General Directorate of Information Systems Security (DGSSI), which operates ... Read more
-
The Cyber Express
Senators Peters and Rounds Lead Bipartisan Push to Extend Critical Cybersecurity Information Sharing Protections
U.S. Senators Gary Peters (D-MI) and Mike Rounds (R-SD) have introduced a bipartisan bill to extend vital provisions from the Cybersecurity Information Sharing Act of 2015. The new legislation, titled ... Read more
-
Daily CyberSecurity
Cellebrite Android Zero-Day Exploit PoC Released: CVE-2024-53104
A security researcher published a proof-of-concept exploit code for an Android zero-day exploit chain developed by Cellebrite to unlock the device of a student activist in the country and attempt to i ... Read more
-
Daily CyberSecurity
Critical PyTorch Vulnerability CVE-2025-32434 Allows Remote Code Execution
A critical vulnerability has been unearthed in PyTorch, one of the most beloved deep learning frameworks out there. Security researcher Ji’an Zhou has identified a critical Remote Command Execution (R ... Read more
The following table lists the changes that have been made to the
CVE-2025-32434 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Dec. 01, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html -
Initial Analysis by [email protected]
May. 28, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:* versions up to (excluding) 2.6.0 Added Reference Type GitHub, Inc.: https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6 Types: Vendor Advisory -
New CVE Received by [email protected]
Apr. 18, 2025
Action Type Old Value New Value Added 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. Added CVSS V4.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 Added CWE CWE-502 Added Reference https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6