
CVE catalog
CVE-2026-58659
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 che
- Severity
- High · CVSS 8.4
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 - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Pip | lightning | Not reported | 2.6.6 | fixed |
| PyPI | pytorch-lightning | Not reported | 2.6.6 | fixed |
| Cpe | pytorch_lightning | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Pip | lightning | pip | Not reported | 2.6.6 | Not reported | GHSA-QQMF-GPG7-G8GW | Not reported |
| PyPI | pytorch-lightning | PyPI | Not reported | 2.6.6 | Not reported | PYSEC-2026-3967 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86f]
- [https://github.com/Lightning-AI/pytorch-lightning/issues/21822]
- [https://github.com/Lightning-AI/pytorch-lightning/pull/21832]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-58659]
- [https://osv.dev/vulnerability/PYSEC-2026-3967]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-58659.json]
- [https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameter]
[FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]