{"id":"CVE-2021-4118","aliases":["CVE-2021-4118","GHSA-2vj5-px25-gjrp","PYSEC-2021-874","PYSEC-2026-3968"],"related":[],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning","summary":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data","source":"cvelist"},{"lang":"en","text":"pytorch-lightning is vulnerable to Deserialization of Untrusted Data.","format":"markdown","source":"ghsa"},{"lang":"es","text":"pytorch-lightning es vulnerable a una Deserialización de Datos No Confiables","source":"nvd"}],"published":"2021-12-23T17:15:11.000Z","modified":"2026-09-10T17:26:03.425Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.6","status":"affected"}],"vendor":"pytorchlightning","product":"pytorchlightning/pytorch-lightning","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.0"}],"ecosystem":"PyPI","package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.0"}],"vendor":"lightningai","product":"pytorch_lightning","cpe":"cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"62f1e82e032eb16565e676d39e0db0cac7e34ace"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.0"}],"ecosystem":"PyPI","package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","repo":"https://github.com/pytorchlightning/pytorch-lightning","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"62f1e82e032eb16565e676d39e0db0cac7e34ace"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.0"}],"ecosystem":"PyPI","package":"lightning","purl":"pkg:pypi/lightning","repo":"https://github.com/pytorchlightning/pytorch-lightning","source":"pysec"}],"references":[{"url":"https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4118","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/issues/11045","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/pull/11099","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PyTorchLightning/pytorch-lightning/releases/tag/1.6.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-2vj5-px25-gjrp","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2021-874.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorchlightning/pytorch-lightning","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-4118","url":"https://www.cve.org/CVERecord?id=CVE-2021-4118","licence":"CVE Terms of Use","modified":"2024-08-03T17:16:04.234Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2vj5-px25-gjrp","url":"https://github.com/advisories/GHSA-2vj5-px25-gjrp","licence":"CC-BY-4.0","modified":"2026-09-10T17:26:03.425Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-4118","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4118","licence":"Public domain","modified":"2026-06-17T04:19:03.817Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-874","url":"https://osv.dev/vulnerability/PYSEC-2021-874","licence":"CC-BY-4.0","modified":"2026-09-10T17:26:03.425Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3968","url":"https://osv.dev/vulnerability/PYSEC-2026-3968","licence":"CC-BY-4.0","modified":"2026-09-10T17:26:03.425Z"}],"updatedAt":"2026-11-25T22:58:06.148Z","epss":{"score":0.01019,"percentile":0.64344,"date":"2026-12-01T12:00:22.000Z"}}