๐Ÿ” CVE Alert

CVE-2026-58659

HIGH 7.8

PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter

CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-470
Vendor lightning-ai
Product pytorch-lightning
Published Jul 15, 2026
Stay Ahead of the Next One

Get instant alerts for lightning-ai pytorch-lightning

Be the first to know when new high vulnerabilities affecting lightning-ai pytorch-lightning are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

Lightning-AI / pytorch-lightning
0 โ‰ค 2.6.5

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/Lightning-AI/pytorch-lightning/issues/21822 github.com: https://github.com/Lightning-AI/pytorch-lightning/pull/21832 github.com: https://github.com/Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f53b3cd773cbca20b1f86f vulncheck.com: https://www.vulncheck.com/advisories/pytorch-lightning-arbitrary-code-execution-via-instantiator-hyperparameter

Credits

George Chen