Advisory

PYSEC-2026-3967

Also known as: CVE-2026-58659, GHSA-qqmf-gpg7-g8gw, PYSEC-2026-3624

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-15 18:16 UTC
Modified
2026-09-10 17:00 UTC

Affected packages and fixes

pytorch-lightning

PyPI · All systems

Affected

  • introduced 0, fixed 2.6.6 (ecosystem)

Fixed versions

2.6.6

Fix

  • Fixed version 2.6.6
    pip install --upgrade pytorch-lightning==2.6.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences