{"id":"CVE-2021-4118","aliases":["EUVD-2021-0212","GHSA-2vj5-px25-gjrp","PYSEC-2021-874","PYSEC-2026-3968"],"status":"published","title":"Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01019,"percentile":0.63657,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502"],"published":"2021-12-23T17:15:11Z","modified":"2026-10-24T10:50:09Z","fixes":[{"ecosystem":"PyPI","package":"pytorch-lightning","fixed_in":["1.6.0"],"sources":["ghsa","osv"]},{"ecosystem":"PyPI","package":"lightning","fixed_in":["1.6.0"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pytorch-lightning","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pytorch-lightning","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}],"versions":["0.0.2","0.10.0","0.2","0.2.2","0.2.3","0.2.4","0.2.4.1","0.2.5","0.2.5.1","0.2.5.2","0.2.6","0.3","0.3.1","0.3.2","0.3.3","0.3.4","0.3.4.1","0.3.5","0.3.6","0.3.6.1","0.3.6.3","0.3.6.4","0.3.6.5","0.3.6.6","0.3.6.7","0.3.6.8","0.3.6.9","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.1","0.5.1.2","0.5.1.3","0.5.2","0.5.2.1","0.5.3","0.5.3.1","0.5.3.2","0.5.3.3","0.6.0","0.7.1","0.7.3","0.7.5","0.7.6","0.8.1","0.8.3","0.8.4","0.8.5","0.9.0","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.2.0","1.2.0rc0","1.2.0rc1","1.2.0rc2","1.2.1","1.2.10","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.3.0","1.3.0rc1","1.3.0rc2","1.3.0rc3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.7.post0","1.3.8","1.4.0","1.4.0rc0","1.4.0rc1","1.4.0rc2","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5.0","1.5.0rc0","1.5.0rc1","1.5.1","1.5.10","1.5.10.post0","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9","1.6.0rc0","1.6.0rc1"]},{"source":"osv","ecosystem":"PyPI","package":"pytorch-lightning","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"62f1e82e032eb16565e676d39e0db0cac7e34ace"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}],"versions":["0.0.2","0.10.0","0.2","0.2.2","0.2.3","0.2.4","0.2.4.1","0.2.5","0.2.5.1","0.2.5.2","0.2.6","0.3","0.3.1","0.3.2","0.3.3","0.3.4","0.3.4.1","0.3.5","0.3.6","0.3.6.1","0.3.6.3","0.3.6.4","0.3.6.5","0.3.6.6","0.3.6.7","0.3.6.8","0.3.6.9","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.1","0.5.1.2","0.5.1.3","0.5.2","0.5.2.1","0.5.3","0.5.3.1","0.5.3.2","0.5.3.3","0.6.0","0.7.1","0.7.3","0.7.5","0.7.6","0.8.1","0.8.3","0.8.4","0.8.5","0.9.0","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.2.0","1.2.0rc0","1.2.0rc1","1.2.0rc2","1.2.1","1.2.10","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.3.0","1.3.0rc1","1.3.0rc2","1.3.0rc3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.7.post0","1.3.8","1.4.0","1.4.0rc0","1.4.0rc1","1.4.0rc2","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5.0","1.5.0rc0","1.5.0rc1","1.5.1","1.5.10","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9","1.6.0rc0","1.6.0rc1","1.5.10.post0"]},{"source":"osv","ecosystem":"PyPI","package":"lightning","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"62f1e82e032eb16565e676d39e0db0cac7e34ace"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}],"versions":["0.0.2","0.10.0","0.2","0.2.2","0.2.3","0.2.4","0.2.4.1","0.2.5","0.2.5.1","0.2.5.2","0.2.6","0.3","0.3.1","0.3.2","0.3.3","0.3.4","0.3.4.1","0.3.5","0.3.6","0.3.6.1","0.3.6.3","0.3.6.4","0.3.6.5","0.3.6.6","0.3.6.7","0.3.6.8","0.3.6.9","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.1","0.5.1.2","0.5.1.3","0.5.2","0.5.2.1","0.5.3","0.5.3.1","0.5.3.2","0.5.3.3","0.6.0","0.7.1","0.7.3","0.7.5","0.7.6","0.8.1","0.8.3","0.8.4","0.8.5","0.9.0","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.2.0","1.2.0rc0","1.2.0rc1","1.2.0rc2","1.2.1","1.2.10","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.3.0","1.3.0rc1","1.3.0rc2","1.3.0rc3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.7.post0","1.3.8","1.4.0","1.4.0rc0","1.4.0rc1","1.4.0rc2","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5.0","1.5.0rc0","1.5.0rc1","1.5.1","1.5.10","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9","1.6.0rc0","1.6.0rc1","1.3.0rc0","1.1.0rc2","1.1.0rc1","0.8.2","0.8.0","0.7.4","0.7.2","0.7.0","0.2.1","0.1.2","0.1.1","0.0.1"]}],"products":[{"vendor":"lightningai","product":"pytorch_lightning"},{"vendor":"pytorchlightning","product":"pytorchlightning/pytorch-lightning"}],"references":[{"url":"https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4118","tags":["advisory"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/issues/11045","tags":["web"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/pull/11099","tags":["web"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/releases/tag/1.6.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2vj5-px25-gjrp","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2021-874.yaml","tags":["web"]},{"url":"https://github.com/pytorchlightning/pytorch-lightning","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-4118","title":"Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2021-12-23T17:15:11Z","modified":"2024-08-03T17:16:04.234Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:33:07.697752Z"}],"euvd":[{"id":"EUVD-2021-0212","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2021-12-23T17:15:11Z","modified":"2024-08-03T17:16:04Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:10.888157Z"}],"ghsa":[{"id":"GHSA-2vj5-px25-gjrp","title":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data.","status":"published","published":"2022-01-06T23:58:59Z","modified":"2024-10-25T20:50:31Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:38:13.09489Z"}],"nvd":[{"id":"CVE-2021-4118","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2021-12-23T18:15:07.407Z","modified":"2026-06-17T04:19:03.817Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:07:02.566991Z"}],"osv":[{"id":"CVE-2021-4118","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2021-12-23T18:15:07.407Z","modified":"2026-10-24T10:50:09.110905879Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"GHSA-2vj5-px25-gjrp","title":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data.","status":"published","published":"2022-01-06T23:58:59Z","modified":"2026-09-10T17:26:03.425101162Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"PYSEC-2021-874","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2021-12-23T18:15:00Z","modified":"2026-09-10T17:26:03.425101162Z","updated_at":"2026-11-02T15:52:53.449407Z"},{"id":"PYSEC-2026-3968","description":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","status":"published","published":"2026-09-10T16:42:38.525571Z","modified":"2026-09-10T17:26:03.425101162Z","updated_at":"2026-11-02T15:52:57.255153Z"}]}}
