CVE-2026-58659Lightningai Pytorch Lightning
High 8.4
Follow: this CVE · Lightningai · Lightningai Pytorch Lightning We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 4.0
- 8.4
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 15, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-470
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Pytorch Lightning.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lightning |
< 2.6.6 |
2.6.6 |
pip install "lightning>=2.6.6" |
| PyPI | lightning |
< 2.6.6 |
2.6.6 |
pip install "lightning>=2.6.6" |
| PyPI | pytorch-lightning |
< 2.6.6 |
2.6.6 |
pip install "pytorch-lightning>=2.6.6" |
Per OSV / GitHub Advisories (GHSA-qqmf-gpg7-g8gw, PYSEC-2026-3624, PYSEC-2026-3967). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lightningai | pytorch_lightning | ≤ 2.6.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Issue Tracking Mitigation
- github.com Issue Tracking Patch
- www.vulncheck.com Exploit Patch Third Party Advisory