CVE-2026-142196: PyTorch Lightning through 2.6.6 Insecure Deserialization via FSDP Checkpoint Loading
PyTorch Lightning through 2.6.6 contains an insecure deserialization vulnerability in FSDPStrategy.loadcheckpoint that ignores weightsonly=True when loading local single-file checkpoints. Attackers who supply a crafted checkpoint can embed a pickle payload that LazyLoadingUnpickler resolves through unrestricted findclass, executing code as the training user.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of PyTorch Lightning through 2.6.6 are exposed when their workload uses FSDPStrategy.load_checkpoint to load a local single-file checkpoint obtained from an untrusted source. The payload executes with the privileges of the training user.
What must an attacker provide to exploit it?
The attacker must induce the target to load a crafted local single-file checkpoint through FSDPStrategy.load_checkpoint. Exploitation relies on a pickle payload whose classes are resolved through the unrestricted _LazyLoadingUnpickler.find_class mechanism.
Does setting weights_only=True prevent exploitation?
No. In the affected FSDP checkpoint-loading path, weights_only=True is ignored for local single-file checkpoints.
What can be done if patching is not immediately possible?
Do not load local single-file FSDP checkpoints from untrusted or unverifiable sources. Treat checkpoints as executable content and restrict checkpoint loading to artifacts you control and trust.