CVE-2026-58659
Last modified
CVE-2026-58659 is a high-severity vulnerability rated 8.4/10 on the CVSS scale. 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.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Lightningai | Pytorch Lightning | <= 2.6.5 |
References
- https://github.com/Lightning-AI/pytorch-lightning/issues/21822Exploit, Issue Tracking, Mitigation
- https://github.com/Lightning-AI/pytorch-lightning/pull/21832Issue Tracking, Patch
- https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameterExploit, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-58659?
How severe is CVE-2026-58659?
How do I fix CVE-2026-58659?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58653PraisonAI before 0.1.7 fails to validate that project_id in …5.3
- CVE-2026-58654The Grav API plugin (getgrav/grav-plugin-api) 1.0.0 contains…5.3
- CVE-2026-58655The bundled Grav Flex Objects plugin (getgrav/grav-plugin-fl…8.8
- CVE-2026-58656Grav API plugin before v1.0.0-rc.16 accepts JWT tokens via t…8.7
- CVE-2026-58657Grav before 2.0.0 (affected through 2.0.0-rc.9 and the 2.0 b…4.8
- CVE-2026-58658GPUStack through 2.2.1, fixed in commit 4e20551, contains an…8.8
- CVE-2026-5866Use after free in Media in Google Chrome prior to 147.0.7727…8.8
- CVE-2026-58660Kanboard through 1.2.52, fixed in commit 564cc30, BoardAjaxC…8.1
- CVE-2026-58661n8n before 2.28.0 (and before 1.123.58 on the 1.x branch) co…4.3
- CVE-2026-58662Improper Validation of Specified Quantity in Input, Out-of-b…9.1
- CVE-2026-5867Heap buffer overflow in WebML in Google Chrome prior to 147.…4.3
- CVE-2026-5868Heap buffer overflow in ANGLE in Google Chrome on Mac prior …8.8
Are you affected by CVE-2026-58659?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
