{"id":"CVE-2026-31221","published":"2026-05-12T00:00:00Z","modified":"2026-05-15T18:05:39Z","title":"PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00385,"percentile":0.33439,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/Lightning-AI/pytorch-lightning","tags":[]},{"url":"https://www.notion.so/CVE-2026-31221-35d1e1393188815f8db7c4fd08076639","tags":[]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":6.69},{"name":"CVSS severity","points":6.16}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-15T18:02:25.761345Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pytorch-lightning","vulnerableRanges":["<=2.6.0"],"patched":[],"from":["GHSA-75m9-98v2-hjpm","PYSEC-2026-3043"],"provenance":"source"},{"ecosystem":"PyPI","package":"lightning","vulnerableRanges":["<=2.6.0"],"patched":[],"from":["PYSEC-2026-3972"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-29505","exploited":false,"provenance":"source"}}