GHSA-75m9-98v2-hjpm · Severity: high · Ecosystem: pip — PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization
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.
Conclusion & alert: CVE-2026-31221 is rated High Exploit Risk (62.3/100): CVSS High severity, with low exploitation likelihood (EPSS 0.23%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-15 | 0.06% | 0.23% | +0.17% |
| 2 | 2026-05-13 | — | 0.06% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
GHSA-75m9-98v2-hjpm · Severity: high · Ecosystem: pip — PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization
| vendor | priority | summary | link |
|---|---|---|---|
ubuntu
|
medium | CVE-2026-31221 medium priority: Ubuntu including 1 source packages (pytorch), 5 status rows across 5 suites (jammy, noble, questing, resolute, upstream): needs-triage 4, DNE 1. | https://ubuntu.com/security/CVE-2026-31221 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| lightningai | pytorch_lightning | <= 2.6.0 | cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/Lightning-AI/pytorch-lightning | Product |
| https://www.notion.so/CVE-2026-31221-35d1e1393188815f8db7c4fd08076639 | Exploit Third Party Advisory |