Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PyTorch Lightning (lightning package) versions before 2.6.6 are vulnerable. An attacker who can supply a malicious checkpoint file can cause arbitrary code to run when it is loaded with LightningModule.load_from_checkpoint, even with weights_only=True set. Upgrade to lightning 2.6.6 or later. The source gives few details on workarounds.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.4 | High | 4.0 | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0063, the 50th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 15 Jul 2026, 17:02 UTC Confirmed by the CVE List
- 31 Oct 2026, 14:09 UTC First seen by agentprime
- 31 Oct 2026, 14:09 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-qqmf-gpg7-g8gw
- OSV: GHSA-qqmf-gpg7-g8gw
- nvd.nist.gov/vuln/detail/CVE-2026-58659
- github.com/Lightning-AI/pytorch-lightning/issues/21822
- github.com/Lightning-AI/pytorch-lightning/pull/21832
- github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86f
- github.com/Lightning-AI/pytorch-lightning
- github.com/Lightning-AI/pytorch-lightning/releases/tag/2.6.6
- github.com/advisories/GHSA-qqmf-gpg7-g8gw
- github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3624.yaml
- github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-3967.yaml
- www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameter