---
title: "CVE-2025-32434: PyTorch: `torch.load` with `weights_only=True` leads to remote code execution"
url: https://erroneo.us/security/cve/CVE-2025-32434/
description: "CVE-2025-32434 (torch (PyPI)): PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-04-18
date_modified: 2025-12-01
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-32434"
kev: false
cvss: 9.3
epss: 0.02369
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 2.4% , percentile 84: FIRST’s model estimates a 2.4% chance of exploitation activity in the next 30 days, higher than 84% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes torch (PyPI) < 2.6.0, fixed in 2.6.0 . Check your lockfile, including transitive dependencies.

## What it is

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 weightsonly=True. This issue has been patched in version 2.6.0.

## Affected packages

- PyPI `torch` < 2.6.0 → fixed: 2.6.0

## Affected products (CVE record)

- pytorch pytorch: < 2.6.0

## Severity

- GitHub_M CVSS 4.0: 9.3 `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: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 2.37% probability of exploitation activity in the next 30 days; percentile 84.

## Sources

- [GitHub Advisory GHSA-53q9-r3pm-6pq6](https://github.com/advisories/GHSA-53q9-r3pm-6pq6)
- [CVE.org record CVE-2025-32434](https://www.cve.org/CVERecord?id=CVE-2025-32434)
- [NVD entry CVE-2025-32434](https://nvd.nist.gov/vuln/detail/CVE-2025-32434)
- [github.com](https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6)
- [lists.debian.org](https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html)
- [github.com](https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yaml)

---
Source page: https://erroneo.us/security/cve/CVE-2025-32434/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
