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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-470"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58659.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.6.5"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "d710d689510d50e800f53b3cd773cbca20b1f86f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}