NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserializationGHSA-75m9-98v2-hjpm

HIGH

GHSA-75m9-98v2-hjpm is a high-severity (CVSS 7.8) Deserialization of Untrusted Data vulnerability in pytorch-lightning. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.

Also known asCVE-2026-31221PYSEC-2026-3043PYSEC-2026-3972
Published
Updated
Affected
1 pkg
Patched
See advisory
Exploits
None indexed
Exploitation data as of Nov 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-75m9-98v2-hjpm.

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs33th percentile — riskier than 33% of all scored CVEsHighest risk
0.00%0.35%0.70%1.05%0.2%0.4%Jun 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐍pytorch-lightning

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the checkpoint loading mechanism. The LightningModule.load_from_checkpoint() method, which is commonly used to load saved model states, internally calls torch.load() without setting the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution on the victim's system when the file is loaded.

Affected Packages

1 total
EcosystemPackageVulnerable rangeFix
🐍PyPIpytorch-lightningall versionsNo fix

Affected Products

1 product · 1 configurations
Application
pytorch lightninglightningai
≤ 2.6.0
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pytorch-lightning, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Remediation status

    The records we use list no patched version of pytorch-lightning for GHSA-75m9-98v2-hjpm. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.

  3. 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.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

This is an Important arbitrary code execution flaw in PyTorch-Lightning due to insecure deserialization in its checkpoint loading mechanism. Red Hat products utilizing PyTorch-Lightning, such as Red Hat Enterprise Linux AI and Red Hat AI Inference Server, are affected if they process untrusted checkpoint files. An…

Workaround published by Red Hat
To mitigate this issue, avoid loading PyTorch-Lightning checkpoint files from untrusted or unverified sources. Ensure that all checkpoint files originate from trusted environments to prevent the deserialization of malicious Python objects and subsequent arbitrary code execution.
Source: Red Hat security advisory for GHSA-75m9-98v2-hjpm (CC BY 4.0)

Frequently Asked Questions

PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the checkpoint loading mechanism. The LightningModule.load_from_checkpoint() method, which is commonly used to load saved model states, internally calls torch.load() without setting the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution on the victim's system when the f
O3 Security · Impact-Aware SCA

Is GHSA-75m9-98v2-hjpm in your dependencies?

Find it across PyPI, including transitive dependencies.

PyTorch Lightning load_from_checkpoint has an insecure…