PT-2026-60248 · Lightning Ai · Pytorch-Lightning

George Chen

·

Published

2026-07-15

·

Updated

2026-07-15

·

CVE-2026-58659

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-58659

Affected Products

Pytorch-Lightning