Skip to main content
VulnerabilityPublished Updated

CVE-2026-58659: pytorch-lightning · Unsafe Reflection

Affects pytorch-lightningSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.4 High : upgrade to 2.6.6 soon.

Data as of 27 Nov 2026, 22:51 UTC

CVSS 4.0 base score
8.4High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.08.4
CNA (VulnCheck)CVSS 3.17.8
EPSS
0.6% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.6.6
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.

What to do

Upgrade lightning to 2.6.6.

Affected software

ProductAffectedFixed in
Lightning-AIpytorch-lightningAffected
  • <=2.6.5
Fixed in–
PyPIpytorch-lightningpkg:pypi/pytorch-lightningOther threatsAffected
  • <=2.6.5
Fixed in–
PyPIlightningpkg:pypi/lightningOther threatsAffected
  • <2.6.6
Fixed in
  • 2.6.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, avoid loading untrusted checkpoint files with LightningModule.load_from_checkpoint to prevent exploitation.

Description

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.

References

Community reviews

Loading reviews…