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.
CVE-2026-58659
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-07-15. a secondary CVSS source baseline 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- 51(Track*)EG Risk 51/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 0%
- EPSS %ILE
- 25%
- KEV
- Not listed
Published
July 15, 2026
Last Modified
August 6, 2026
Advisory Details (4)
Auto-updated Jul 15, 2026PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter | Advisories | VulnCheck
https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameterfix(checkpoint): prevent arbitrary code execution via `_instantiator` in `load_from_checkpoint`
Fix merged in Lightning-AI/pytorch-lightning PR #21832 on 2026-07-14 — awaiting tagged release
https://github.com/Lightning-AI/pytorch-lightning/pull/21832Arbitrary code execution via the `_instantiator` hyperparameter in `LightningModule.load_from_checkpoint` — defeats `torch.load(weights_only=True)` · Issue #21822 · Lightning-AI/pytorch-lightning · GitHub
https://github.com/Lightning-AI/pytorch-lightning/issues/21822commit d710d689510d (Lightning-AI/pytorch-lightning)
Fix landed in Lightning-AI/pytorch-lightning commit d710d689510d — awaiting tagged release
https://github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86fVendor Advisories for CVE-2026-58659(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| lightning | 1.8.0 ... 2.6.5 (171 versions) | 2022.6.15 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 20× in last 7d / 112× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 159 total refreshes for this CVE.
- 2026-08-30 03:51 UTCEG score recompute
- 2026-08-30 03:51 UTCGHSA enrichment
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-28 21:42 UTCEPSS rescore
- 2026-08-27 23:59 UTCEG score recompute
- 2026-08-27 23:59 UTCGHSA enrichment
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-27 12:40 UTCGHSA enrichment
- 2026-08-26 23:07 UTCEG score recompute
- 2026-08-26 23:07 UTCGHSA enrichment
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-26 07:30 UTCGHSA enrichment
- 2026-08-25 19:01 UTCEG score recompute
- 2026-08-25 19:01 UTCGHSA enrichment
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 06:52 UTCGHSA enrichment
- 2026-08-24 19:32 UTCEG score recompute
- 2026-08-24 19:32 UTCGHSA enrichment
- 2026-08-24 06:25 UTCGHSA enrichment
- 2026-08-23 18:50 UTCGHSA enrichment
- 2026-08-23 07:31 UTCEG score recompute
- 2026-08-23 07:31 UTCGHSA enrichment
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 20:11 UTCGHSA enrichment
- 2026-08-22 08:52 UTCEG score recompute
Show 75 moreShow fewer
- 2026-08-22 08:52 UTCGHSA enrichment
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 21:33 UTCGHSA enrichment
- 2026-08-21 10:14 UTCEG score recompute
- 2026-08-21 10:14 UTCGHSA enrichment
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 22:54 UTCGHSA enrichment
- 2026-08-20 11:35 UTCGHSA enrichment
- 2026-08-20 00:16 UTCEG score recompute
- 2026-08-20 00:16 UTCGHSA enrichment
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-19 07:18 UTCGHSA enrichment
- 2026-08-18 19:59 UTCEG score recompute
- 2026-08-18 19:59 UTCGHSA enrichment
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-18 02:34 UTCGHSA enrichment
- 2026-08-17 14:00 UTCEG score recompute
- 2026-08-17 14:00 UTCGHSA enrichment
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 02:41 UTCGHSA enrichment
- 2026-08-16 15:22 UTCEG score recompute
- 2026-08-16 15:22 UTCGHSA enrichment
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 04:03 UTCEG score recompute
- 2026-08-16 04:03 UTCGHSA enrichment
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 16:44 UTCGHSA enrichment
- 2026-08-15 05:25 UTCEG score recompute
- 2026-08-15 05:25 UTCGHSA enrichment
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 18:05 UTCGHSA enrichment
- 2026-08-14 06:46 UTCEG score recompute
- 2026-08-14 06:46 UTCGHSA enrichment
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 19:27 UTCGHSA enrichment
- 2026-08-13 08:09 UTCGHSA enrichment
- 2026-08-12 20:50 UTCEG score recompute
- 2026-08-12 20:50 UTCGHSA enrichment
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-12 09:31 UTCGHSA enrichment
- 2026-08-11 22:11 UTCEG score recompute
- 2026-08-11 22:11 UTCGHSA enrichment
- 2026-08-11 10:48 UTCEG score recompute
- 2026-08-11 10:48 UTCGHSA enrichment
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-10 23:28 UTCGHSA enrichment
- 2026-08-10 12:08 UTCGHSA enrichment
- 2026-08-10 00:49 UTCEG score recompute
- 2026-08-10 00:49 UTCGHSA enrichment
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 13:30 UTCGHSA enrichment
- 2026-08-09 02:12 UTCEG score recompute
- 2026-08-09 02:12 UTCGHSA enrichment
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-08 14:53 UTCGHSA enrichment
- 2026-08-08 03:33 UTCEG score recompute
- 2026-08-08 03:33 UTCGHSA enrichment
- 2026-08-07 16:14 UTCGHSA enrichment
- 2026-08-07 04:55 UTCGHSA enrichment
- 2026-08-06 17:36 UTCEG score recompute
- 2026-08-06 17:36 UTCGHSA enrichment
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-06 13:42 UTCGHSA enrichment
- 2026-08-06 02:22 UTCEG score recompute
- 2026-08-06 02:22 UTCGHSA enrichment
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 15:03 UTCGHSA enrichment
- 2026-08-05 00:40 UTCEG score recompute
- 2026-08-05 00:40 UTCGHSA enrichment
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 13:01 UTCEG score recompute
- 2026-08-04 13:01 UTCGHSA enrichment
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-04 01:32 UTCGHSA enrichment
- 2026-08-03 14:13 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-58659?
When was CVE-2026-58659 disclosed?
Is CVE-2026-58659 actively exploited?
What is the CVSS score of CVE-2026-58659?
How do I remediate CVE-2026-58659?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-58659
Is Your Infrastructure Affected by CVE-2026-58659?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.