CVE-2026-58659PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter
Updated under an hour ago ()
Does this affect you?
It affects Lightning-AI pytorch-lightning and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-470
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- VulnCheck
- NVD analysis
- Analyzed
- Record last updated
- Oct 8, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Lightning-AI pytorch-lightning lightning_ai:pytorch_lightning (from the name) | through 2.6.5; d710d689510d50e800f53b3cd773cbca20b1f86f not affected | CNA record |
lightningai pytorch_lightning lightningai:pytorch_lightning | through 2.6.5 | NVD |
References
- https://github.com/Lightning-AI/pytorch-lightning/issues/21822technical-description, exploit
- https://github.com/Lightning-AI/pytorch-lightning/pull/21832issue-tracking
- https://github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86fpatch
- https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameterthird-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.