Remote Code Execution Vulnerability in PyTorch Lightning
CVE-2026-58659
Key Information:
- Vendor
Lightning-ai
- Status
- Vendor
- CVE Published:
- 15 July 2026
Badges
What is CVE-2026-58659?
A vulnerability in PyTorch Lightning allows attackers to execute arbitrary code through the _load_state function. By crafting malicious checkpoint files that manipulate checkpoint _instantiator hyperparameters, an attacker can bypass the weights_only=True protection mechanism. When the LightningModule.load_from_checkpoint method is executed, it may inadvertently import and run module names specified by an attacker, posing serious security risks to applications utilizing this library.
Affected Version(s)
pytorch-lightning 0 <= 2.6.5
pytorch-lightning d710d689510d50e800f53b3cd773cbca20b1f86f
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
