Advisory record · GHSA-75m9-98v2-hjpm

PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization

CVSS 7.8 HighEPSS 0.0039 · 33rd percentile

Published by the GitHub Advisory Database at 12 May 2026, 18:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pytorch-lightningPyPI<=2.6.0No fixed version yet
Identifiers
GHSA-75m9-98v2-hjpm · CVE-2026-31221 · PYSEC-2026-3043 · PYSEC-2026-3972
Weakness (CWE)
CWE-502
Published
12 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PyTorch Lightning versions up to and including 2.6.0 are affected. The LightningModule.load_from_checkpoint() method calls torch.load() without weights_only=True, so a checkpoint file that is maliciously crafted can contain arbitrary Python objects that run code when loaded. An attacker would need to get a victim to load such a checkpoint file. No fixed version is listed, and the source gives few details on workarounds.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.8 High 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.0039, the 33rd percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 12 May 2026, 16:16 UTC Confirmed by NVD
  2. 31 Oct 2026, 14:10 UTC First seen by agentprime
  3. 31 Oct 2026, 14:10 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.