PyPA Advisory Database
PYSEC-2026-3971
PyTorch Lightning denial of service vulnerability
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | lightning | All versions up to and including 2.3.2 |