# CVE-2025-32434: PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.37%, higher than 84% of CVEs (2026-12-01)
- Published: 2025-04-18T15:19:28.000Z
- Modified: 2026-09-08T08:48:24.985Z
- Also known as: GHSA-53q9-r3pm-6pq6, BIT-PYTORCH-2025-32434, PYSEC-2025-41
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pytorch pytorch: < 2.6.0
- torch (PyPI): before 2.6.0
- linuxfoundation pytorch: before 2.6.0
- pytorch (Bitnami): before 2.6.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6> (advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32434> (advisory, web)
- <https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yaml> (web)
- <https://github.com/pytorch/pytorch> (package)

## Sources

- CVE List: [CVE-2025-32434](https://www.cve.org/CVERecord?id=CVE-2025-32434), CVE Terms of Use, modified 2025-12-01
- GitHub Advisory Database: [GHSA-53q9-r3pm-6pq6](https://github.com/advisories/GHSA-53q9-r3pm-6pq6), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2025-32434](https://nvd.nist.gov/vuln/detail/CVE-2025-32434), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-41](https://osv.dev/vulnerability/PYSEC-2025-41), CC-BY-4.0, modified 2025-05-28
- Bitnami Vulnerability Database: [BIT-PYTORCH-2025-32434](https://osv.dev/vulnerability/BIT-PYTORCH-2025-32434), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-32434 · Whole record: https://cve.day/CVE-2025-32434.json · Rebuilt by cve.day 2026-11-25T22:58:56.775Z
