Security mailing lists by PureSourceCode

CVE-2025-32434

CRITICAL 9.3CVSS 4.0

PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

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.

Published
18 Apr 2025
Last modified
7 Aug 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-502
Also known as
BIT-pytorch-2025-32434GHSA-53q9-r3pm-6pq6PYSEC-2025-41
Sources
NVDJSONOSV GHSA-53q9-r3pm-6pq6JSONOSV PYSEC-2025-41JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 CRITICAL 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/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
OSV GitHub CVSS 4.0 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 nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation pytorch
cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*
< 2.6.0 2.6.0
OSV PyPI torch < 2.6.0 2.6.0

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 18 Apr 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Apr 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.