Disclosure 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.
Source-reported weakness categories
CWE-470
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST National Vulnerability Database · NVD-CVE-2026-58659
Open original source · Updated Oct 08, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
| Vendor | Product / association | Version / bounds |
|---|---|---|
| lightningai | pytorch_lightning | * {"versionEndIncluding":"2.6.5"} |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Patch
- github.com — Exploit, Issue Tracking, Mitigation
- github.com — Issue Tracking, Patch
- www.vulncheck.com — Exploit, Patch, Third Party Advisory
PUBLISHED 2026-07-15T14:16:48-04:00
MODIFIED 2026-10-08T12:17:23-04:00
INGESTED 2026-10-10T20:50:36-04:00