CVE-2026-58659
published high CVSS 4.0 · 8.4PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Lightning-AI | — | pytorch-lightning0 through 2.6.5 (affected · semver) · d710d689510d50e800f53b3cd773cbca20b1f86f (unaffected · git) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Lightning-AI | pytorch-lightning | 0 through 2.6.5 (affected · semver)d710d689510d50e800f53b3cd773cbca20b1f86f (unaffected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
4- Patch Commit https://github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86f
- Researcher Disclosure https://github.com/Lightning-AI/pytorch-lightning/issues/21822
- Pull Request https://github.com/Lightning-AI/pytorch-lightning/pull/21832
- https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameter
Provider assertions
2VulnCheck · cna
PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5a059d935e957889a6333673c7dfc4417b8d07839352d5648280ae636492f693
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record