CVE-2026-24747

Summary

PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's weights_only unpickler allows an attacker to 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. Version 2.10.0 fixes the issue.

Affected Software

VendorProductVersion RangeStatus
pytorchpytorch< 2.10.0affected

Weaknesses

  • CWE-502: CWE-502: Deserialization of Untrusted Data
  • CWE-94: CWE-94: Improper Control of Generation of Code ('Code Injection')

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

pytorch: PyTorch: Arbitrary code execution via malicious checkpoint file loading

Additional References

References