CVE-2025-32434 — Vulnerability in torch — CVE Details
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Summary
Advisory Timeline
- First published April 18, 2025 (542 days ago).
- Last revised August 7, 2026 — 476 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "torch>=2.6.0"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| torch | pypi | 1.0.0, 1.0.1, 1.1.0, 1.10.0 (+34 more) | 2.6.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
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
References
- https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32434ADVISORY
- https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yamlWEB
- https://github.com/pytorch/pytorchPACKAGE
Frequently Asked Questions
- What is CVE-2025-32434?
- PyTorch: `torch.load` with `weights_only=True` leads to remote code execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2025-32434?
- CVE-2025-32434 affects torch. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32434 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-61447CRITICAL
PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
- CVE-2026-61445CRITICAL
PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies