CVE-2026-142196 — PyTorch Lightning
HIGHCVE-2026-142196 is a high-severity (CVSS 7) Deserialization of Untrusted Data vulnerability in Lightning-AI PyTorch Lightning. Versions up to 2.6.6 are affected; the records list no fixed version yet, so check the vendor advisory below.
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.…
Description
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.
Affected Products
PyTorch LightningLightning-AIDetection & mitigation playbook
Vendor / applianceDetect
Inventory every Lightning-AI PyTorch Lightning deployment and check each version against the affected-products list above.
Remediation status
The records we use list no fixed version for CVE-2026-142196 (versions up to 2.6.6 are affected). Check the Lightning-AI PyTorch Lightning advisory for a patched release, and apply the workarounds below until you can upgrade.
Mitigate without a patch
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-142196 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.