CVE-2026-142196

PyTorch Lightning could deserialize code despite weights-only checkpoint loading

Lightning-AI · PyTorch Lightning

First documented disclosure · Review checkpoint

Summary

A local single-file FSDP checkpoint could execute Python as the training user.

Severity and exploitation evidence

High · 7.3/10 · CVSS 4.0. Severity source.

Exploitation not established: The reviewed originals establish a reported weakness or controlled demonstration; malicious exploitation and victim compromise are not established. No product, model or proof of concept was executed for this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The lazy checkpoint unpickler resolves classes without enforcing the requested weights_only restriction.

Conditions required

A user loads an attacker-supplied single-file checkpoint through FSDPStrategy.load_checkpoint.

Potential impact

Code execution with the training process permissions; the claim does not establish a remote service compromise.

Affected versions and configurations

PyTorch Lightning: 0 through 2.6.6

Fix and mitigation status

No fixed package version is established in the reviewed originals.

Practical next steps

Use trusted checkpoint provenance and isolate loading until a verified correction is deployed.

Operating lesson

Verify that every loader underneath a safe-mode option enforces it.

Evidence and limits

CVE publication: 2026-12-02. The disclosure date uses the earliest explanatory public source verified in this review; database ingestion is separate. CVSS 4.0 7.3 is the VulnCheck CNA assessment.

Sources