Skip to content
HighVulnerability

CVE-2026-58659: PyTorch Lightning remote code execution via checkpoint _instantiator

Identifier
CVE-2026-58659
Published
Record updated
View JSON
Affected
  • lightning < 2.6.6
Fixed in
2.6.6
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

CVE-2026-58659 affects PyTorch Lightning through 2.6.5, fixed in commit d710d68. The _load_state function imports and executes attacker-controlled module names taken from checkpoint _instantiator hyperparameters. A crafted checkpoint that bypasses weights_only=True can run arbitrary code when LightningModule.load_from_checkpoint is called.

Mitigation

Fixed in commit d710d68.