CVE-2026-58659

published 15 Jul 2026 · updated 8 Nov 2026

PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter

8.8HighCVSS 7.8EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Lightning-AI<=2.6.5

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-58659 severity on Zeptric[![CVE-2026-58659](https://zeptric.io/badge/cve/CVE-2026-58659.svg)](https://zeptric.io/cve/CVE-2026-58659)