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

Published Dec 2, 2026
·
Updated

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

1 affected component
pypi/pytorch-lightning<=2.6.6

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203