# CVE-2026-142196: PyTorch Lightning through 2.6.6 Insecure Deserialization via FSDP Checkpoint Loading

Source: https://aplosec.si/cve/CVE-2026-142196/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142196

High 7.3 · Reported · No fix listed · CWE-502 · PyPI

# PyTorch Lightning through 2.6.6 Insecure Deserialization via FSDP Checkpoint Loading

CVE-2026-142196 · published 2026-12-02

In plain words: this type of bug lets untrusted data turn into running code when it is loaded (unsafe deserialization). No fixed release is listed yet.

## Summary

CVE-2026-142196 affects PyTorch Lightning (PyPI) <= 2.6.6: Insecure Deserialization via FSDP Checkpoint Loading (CWE-502). No fixed release is listed. CVSS 4.0 base score 7.3 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/pytorch-lightning-through-2.6.6-insecure-deserialization-via-fsdp-checkpoint-loading](https://www.vulncheck.com/advisories/pytorch-lightning-through-2.6.6-insecure-deserialization-via-fsdp-checkpoint-loading)

- [Vulnerable codehttps://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/utilities/load.py#L179-L213](https://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/utilities/load.py#L179-L213)

- [Vulnerable codehttps://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/strategies/fsdp.py#L601-L602](https://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/strategies/fsdp.py#L601-L602)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142196](https://www.cve.org/CVERecord?id=CVE-2026-142196)

**Severity:** High 7.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142196)

**Package:** PyTorch Lightning

**Ecosystem:** PyPI

**Affected:** <= 2.6.6

**Fixed:** None

**Weakness:** CWE-502

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
