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.
CVSS 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:XLightningai Pytorch Lightning
APPLightningai≤ 2.6.5
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCE
CWE
Related vulnerabilities
CVE-2026-44484CRITICAL9.3PL ✓same product
PyTorch Lightning – mechanizm harvesting poświadczeń (Embedded Malicious Code)
CVE-2024-8019CRITICAL9.1PL ✓same product
RCE przez upload pliku w PyTorch Lightning (Windows) – CVE-2024-8019
CVE-2024-5980CRITICAL9.8PL ✓same product
Path Traversal w PyTorch Lightning umożliwiający RCE przez złośliwy plugin
CVE-2024-5452CRITICAL9.8PL ✓same product
RCE w pytorch-lightning przez podatną deserializację obiektów deepdiff
CVE-2022-0845CRITICAL9.8PL ✓same product
Code Injection w PyTorch Lightning przed wersją 1.6.0