Skip to content
HighVulnerability

CVE-2026-24747: PyTorch weights_only unpickler memory corruption via malicious checkpoint file

Identifier
CVE-2026-24747
Published
Record updated
View JSON
Affected
  • pytorch < 2.10.0
Fixed in
2.10.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

CVE-2026-24747 affects PyTorch versions prior to 2.10.0. A flaw in the `weights_only` unpickler lets an attacker craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. The weakness is classified as CWE-94 and CWE-502.

Mitigation

Version 2.10.0 fixes the issue.