CVE-2026-58659

HIGH CVSS 4.0: 8.4 EPSS 0.33%
Updated Aug 06, 2026
Lightningai
Parameter Value
CVSS 8.4 (HIGH)
Affected Versions before 2.6.5
Type CWE-470
Vendor Lightningai
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Lightningai Pytorch_Lightning
cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*
<= 2.6.5