lightning
Affected
- introduced
0, fixed2.6.6(ecosystem)
Fixed versions
2.6.6
Fix
- Fixed version
2.6.6pip install --upgrade lightning==2.6.6
Advisory
Also known as: CVE-2026-58659, GHSA-qqmf-gpg7-g8gw, PYSEC-2026-3967
The record has no 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.
Not rated by the source.
0, fixed 2.6.6 (ecosystem)2.6.6
2.6.6pip install --upgrade lightning==2.6.6Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0