CVE-2026-58659: pytorch-lightning · Unsafe Reflection
Affects pytorch-lightningSource CVE Database V5
Not known to be exploited · CVSS 8.4 High : upgrade to 2.6.6 soon.
Data as of 27 Nov 2026, 22:51 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.4 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.6.6
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 15 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade lightning to 2.6.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Lightning-AIpytorch-lightning | Affected
| Fixed in– |
PyPIpytorch-lightningpkg:pypi/pytorch-lightningOther threats | Affected
| Fixed in– |
PyPIlightningpkg:pypi/lightningOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid loading untrusted checkpoint files with LightningModule.load_from_checkpoint to prevent exploitation.
Description
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.
References
- github.com/Lightning-AI/pytorch-lightning/issues/21822 (opens in a new tab)
- github.com/Lightning-AI/pytorch-lightning/pull/21832 (opens in a new tab)
- github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86f (opens in a new tab)
- vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameter (opens in a new tab)