CVE-2026-142196
PyTorch Lightning through 2.6.6 contains an insecure …
PyTorch Lightning through 2.6.6 contains an insecure deserialization vulnerability in FSDPStrategy.load_checkpoint that ignores weights_only=True when loading local single-file checkpoints. Attackers who supply a crafted checkpoint can embed a pickle payload that _LazyLoadingUnpickler resolves through unrestricted find_class, executing code as the training user.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/strategies/fsdp.
- github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/utilities/load.p
- www.vulncheck.com/advisories/pytorch-lightning-through-2.6.6-insecure-deserialization-via-
- nvd.nist.gov/vuln/detail/CVE-2026-142196
- cve.org/CVERecord?id=CVE-2026-142196
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.