CVE-2026-58659 is a remote code execution vulnerability in PyTorch Lightning through 2.6.5. The vulnerability is caused by the _load_state function importing and executing 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. This vulnerability has a high CVSS score of 8.4, indicating a high severity level. Users of PyTorch Lightning versions up to 2.6.5 should be aware of this vulnerability and take immediate action to protect themselves.
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-05-14T15:16:48.933Z and has not been modified since then. The vulnerability affects PyTorch Lightning versions 2.6.2 and 2.6.3, introducing functionality consistent with a credential harvesting mechanism. Defenders should assess exposure and prioritize mitigations or updates, especially for these versions. The CVE has a CVSS score of 9.3 and severity of CRITICAL. The debrief aims to provide an executive overview of the vulnerability, its likely operational impact, and source-confidence limits.