CVE-2024-8019Lightningai Pytorch Lightning
Critical 9.1 No auth needed
Follow: this CVE · Lightningai · Lightningai Pytorch Lightning We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Mar 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-434
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on a Windows host. The vulnerability occurs at the `/api/v1/upload_file/` endpoint, allowing an attacker to write or overwrite arbitrary files by providing a crafted filename. This can lead to potential remote code execution (RCE) by overwriting critical files or placing malicious files in sensitive locations.
What to do
- Apply the vendor's security update for Pytorch Lightning.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lightning |
< 2.4.0 |
2.4.0 |
pip install "lightning>=2.4.0" |
| PyPI | lightning |
< 2.4.0 |
2.4.0 |
pip install "lightning>=2.4.0" |
| PyPI | pytorch-lightning |
< 2.4.0 |
2.4.0 |
pip install "pytorch-lightning>=2.4.0" |
| PyPI | pytorch-lightning |
< 2.4.0 |
2.4.0 |
pip install "pytorch-lightning>=2.4.0" |
Per OSV / GitHub Advisories (GHSA-4cv3-v7pv-rfhf, PYSEC-2026-3970, PYSEC-2026-507). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lightningai | pytorch_lightning | 2.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory