CVE-2024-8020: PyTorch Lightning denial of service vulnerability
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.
Published Mar 20, 2025 · Updated Mar 21, 2025
Affected packages
pytorch-lightning
- Ecosystem
- PyPI
- Affected
- <= 2.3.2
- Fixed in
- No patched version yet
- Check
pip show pytorch-lightning
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-31221
PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization
high7.8No fixMay 12, 2026CVE-2026-44484
Compromise of PyTorch Lightning PyPi Package Versions
critical9.8No fixMay 7, 2026CVE-2024-8019
PyTorch Lightning path traversal vulnerability
critical9.1Mar 20, 2025CVE-2024-5980
pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
critical9.1Jun 27, 2024CVE-2024-5452
Remote code execution in pytorch lightning
critical9.8Jun 6, 2024
