CVE-2025-32434 CRITICAL

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

Vendor Pytorch
Product pytorch
Weakness CWE-502 · Unsafe deserialization
Published April 18, 2025
Last update December 1, 2025

CVSS base score

9.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 18, 2025 CVE published
December 1, 2025 Record updated