What’s Vulnerable › Vulnerabilities
CVE-2021-4118: Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-12-23 · updated 2026-06-17
- Weakness: CWE-502
Description
pytorch-lightning is vulnerable to Deserialization of Untrusted Data
Affected products
- lightning-ai/pytorch-lightning: before 1.6.0 — fixed in 1.6.0
How to fix
Upgrade to a fixed version: lightning-ai/pytorch-lightning 1.6.0. Check the vendor advisory for mitigations.
References
- https://github.com/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace
- https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6
- https://github.com/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace
- https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6
Get alerted when CVE-2021-4118 or the next vulnerability affects your stack