All vulnerabilities

PyPI

CVE-2026-142196

PyTorch Lightning through 2.6.6 Insecure Deserialization via FSDP Checkpoint Loading

Severity
High 7.3
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Deserialization of untrusted data (CWE-502)
Attack
Needs local access · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
lightningPyPI · osv:PyPI:lightning
  • Every version up to 2.6.6

About lightning

Weekly downloads (PyPI)
1,033,715PyPI Stats, 2 Dec 2026

This is the only vulnerability in lightning in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142196