Vulnerability

CVE-2026-58659

highCVSS 4.0 8.4Published 15 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Lightningai pytorch lightning

Weakness type

References

  • github.com /Lightning-AI/pytorch-lightning/commit/d710d689510d50e800f5…
  • github.com /Lightning-AI/pytorch-lightning/issues/21822
  • github.com /Lightning-AI/pytorch-lightning/pull/21832
  • www.vulncheck.com /advisories/pytorch-lightning-arbitrary-code-execution-via-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning