Remote Code Execution Vulnerability in PyTorch Lightning
CVE-2026-58659

8.4HIGH

Key Information:

Vendor
CVE Published:
15 July 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

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

Score:
8.4
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

George Chen
.