CVE-2021-4118Lightningai Pytorch Lightning
High 7.8
Follow: this CVE · Lightningai · Lightningai Pytorch Lightning We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- Yes
- Published
- Dec 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
pytorch-lightning is vulnerable to Deserialization of Untrusted Data
What to do
- Apply the vendor's security update for Pytorch Lightning.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lightning |
< 1.6.0 |
1.6.0 |
pip install "lightning>=1.6.0" |
| PyPI | pytorch-lightning |
< 1.6.0 |
1.6.0 |
pip install "pytorch-lightning>=1.6.0" |
| PyPI | pytorch-lightning |
< 1.6.0 |
1.6.0 |
pip install "pytorch-lightning>=1.6.0" |
Per OSV / GitHub Advisories (PYSEC-2026-3968, GHSA-2vj5-px25-gjrp, PYSEC-2021-874). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lightningai | pytorch_lightning | < 1.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- huntr.dev Exploit Issue Tracking Patch