CVE-2021-4118 json
Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning
published 2021-12-23 4 y ago modified 2026-09-10 59 d ago also GHSA-2vj5-px25-gjrp , PYSEC-2021-874 , PYSEC-2026-3968 , EUVD-2021-0212
- cvss
- 7.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
pytorch-lightning is vulnerable to Deserialization of Untrusted Data
Patch / fix
- pypi pytorch-lightning 1.6.0
- pypi lightning 1.6.0
- pytorchlightning pytorchlightning/pytorch-lightning 1.6
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pytorch-lightning | <1.6.0 |
1.6.0 |
| pypi | lightning | <1.6.0 |
1.6.0 |
Affected products
- pytorchlightning pytorchlightning/pytorch-lightning
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace
web, patch, third-party-advisory
-
huntr.dev
/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/PyTorchLightning/pytorch-lightning/pull/11099
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-4118
advisory
-
github.com
/PyTorchLightning/pytorch-lightning/issues/11045
web
-
github.com
/PyTorchLightning/pytorch-lightning/releases/tag/1.6.0
web
-
github.com
/advisories/GHSA-2vj5-px25-gjrp
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2021-874.yaml
web
-
github.com
/pytorchlightning/pytorch-lightning
package
Sources
- CVE List CVE-2021-4118
- GitHub Advisory GHSA-2vj5-px25-gjrp
- NVD CVE-2021-4118
- OSV PYSEC-2026-3968
- OSV PYSEC-2021-874
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.