CVE Explorer
CVE-2026-31221
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 malici
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://github.com/Lightning-AI/pytorch-lightning"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/cna/references/0
{"url":"https://www.notion.so/CVE-2026-31221-35d1e1393188815f8db7c4fd08076639"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7792e4cbeab9ed5e2a5b4b16f611949ed8d8ae1c5a7b1a8f8aa5d28cb44333b0 · sha256:7798ccd095b7957c… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.