Skip to main content
← All vulnerabilities
CVE-2026-58659PYSEC-2026-3967GHSA-QQMF-GPG7-G8GWPYSEC-2026-3624

PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter

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

Summary

PyTorch Lightning through 2.6.5, fixed in commit d710d68, contains a remote code execution vulnerability in the _load_state function that imports and executes attacker-controlled module names from checkpoint _instantiator hyperparameters. Attackers can craft malicious checkpoint files that bypass weights_only=True protections to execute arbitrary code when LightningModule.load_from_checkpoint is called.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • Lightning-AI pytorch-lightning

    through 2.6.5

  • lightningPyPI

    fixed in 2.6.6

  • pytorch-lightningPyPI

    fixed in 2.6.6

References 4

GitHub · Lightning-AI/pytorch-lightning

vulncheck.com