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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:26.822Z
- Modified: 2026-09-10T17:25:34.335Z
- Also known as: GHSA-98fp-7v67-4v3q, PYSEC-2026-1857, PYSEC-2026-3971
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- lightning-ai lightning-ai/pytorch-lightning: from unspecified up to latest
- pytorch-lightning (PyPI): up to 2.3.2
- lightningai pytorch_lightning: 2.3.2
- lightning (PyPI): up to 2.3.2

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/8b642a78-2b80-4fb0-9b2f-8ba0ff37db6a> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8020> (advisory)
- <https://github.com/Lightning-AI/pytorch-lightning> (package)
- <https://pypi.org/project/pytorch-lightning> (package)
- <https://github.com/advisories/GHSA-98fp-7v67-4v3q> (advisory)

## Sources

- CVE List: [CVE-2024-8020](https://www.cve.org/CVERecord?id=CVE-2024-8020), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-98fp-7v67-4v3q](https://github.com/advisories/GHSA-98fp-7v67-4v3q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-8020](https://nvd.nist.gov/vuln/detail/CVE-2024-8020), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1857](https://osv.dev/vulnerability/PYSEC-2026-1857), CC-BY-4.0, modified 2026-09-10
- PyPA Advisory Database: [PYSEC-2026-3971](https://osv.dev/vulnerability/PYSEC-2026-3971), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2024-8020 · Whole record: https://cve.day/CVE-2024-8020.json · Rebuilt by cve.day 2026-11-25T22:58:52.387Z
