CVE-2026-58659 HIGH

CVE-2026-58659: PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter

Vendor Lightning-Ai
Product pytorch-lightning
Weakness CWE-470
Published July 15, 2026
Last update July 18, 2026

CVSS base score

8.4/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 15, 2026 CVE published
July 18, 2026 Record updated