A AegiFlow
HIGHCVSS 8.4EPSS 0.6%

CVE-2026-58659

CVE-2026-58659 updated by NVD

Published
2026-07-15
Modified
2026-10-26
EPSS percentile
48%
Sources
github-advisory, nvd

Summary

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 packages

EcosystemPackageAffected versionsFixed versions
PyPIlightning—2.6.6

Remediation: Upgrade to 2.6.6 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.