CVE-2022-0845
CRITICAL 9.8CVSS 3.1Code Injection in PyTorch Lightning
Code Injection in GitHub repository pytorchlightning/pytorch-lightning prior to 1.6.0.
- Published
- 5 Mar 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-r5qj-cvf9-p85hPYSEC-2022-181PYSEC-2026-3969
- Sources
- NVDJSONOSV GHSA-r5qj-cvf9-p85hJSONOSV PYSEC-2022-181JSONOSV PYSEC-2026-3969JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.3 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lightningai | pytorch_lightningcpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:* |
< 1.6.0 | 1.6.0 |
| OSV | PyPI | pytorch-lightning | < 1.6.0 | 1.6.0 |
| OSV | PyPI | lightning | < 1.6.0 | 1.6.0 |
References
- https://github.com/pytorchlightning/pytorch-lightning/commit/8b7a12c52e52a06408e9231647839ddb4665e8ae · Patch, Third Party Advisory, WEB, FIX
- https://huntr.dev/bounties/a795bf93-c91e-4c79-aae8-f7d8bda92e2a · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-0845 · ADVISORY
- https://github.com/PyTorchLightning/pytorch-lightning/pull/12212 · WEB
- https://github.com/advisories/GHSA-r5qj-cvf9-p85h · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2022-181.yaml · WEB
- https://github.com/pytorchlightning/pytorch-lightning · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 5 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Mar 2022)