Skip to content
CriticalVulnerability

CVE-2025-32434: PyTorch remote command execution when loading models with torch.load

Identifier
CVE-2025-32434
Published
Record updated
View JSON
Affected
  • torch < 2.6.0
Fixed in
2.6.0
  • released January 29, 2025, 79 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.4%

Summary

CVE-2025-32434 affects PyTorch version 2.5.1 and prior. Loading a model with torch.load using weights_only=True allows Remote Command Execution (RCE), classified as CWE-502 (Deserialization of Untrusted Data). GitHub, Inc. scored it CVSS 4.0 9.3 CRITICAL, with no NVD assessment yet.

Mitigation

This issue has been patched in version 2.6.0.