Live threats

All CVEs / Lightningai

CVE-2026-58659Lightningai Pytorch Lightning

High 8.4

Priority
50
CVSS 4.0
8.4
EPSS
—
Auth required
Yes
Published
Jul 15, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-470
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pytorch Lightning.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI lightning < 2.6.6 2.6.6 pip install "lightning>=2.6.6"
PyPI lightning < 2.6.6 2.6.6 pip install "lightning>=2.6.6"
PyPI pytorch-lightning < 2.6.6 2.6.6 pip install "pytorch-lightning>=2.6.6"

Per OSV / GitHub Advisories (GHSA-qqmf-gpg7-g8gw, PYSEC-2026-3624, PYSEC-2026-3967). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lightningaipytorch_lightning≤ 2.6.5

Official sources

References

Links published by the sources. Open them with care.