Skip to main content
← All vulnerabilities
CVE-2026-24747PYSEC-2026-2286BIT-PYTORCH-2026-24747GHSA-63CW-57P8-FM3PPYSEC-2026-1856

PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.10.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • pytorch pytorch

    fixed in 2.10.0

  • torchPyPI

    fixed in 2.10.0

  • pytorchPyPI

    fixed in 2.10.0

References 4

GitHub · pytorch/pytorch