CVE-2024-8019
Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
- State
- Published
- Severity
- 9.1 Critical
- Published
- Mar 20, 2025
- Updated
- Mar 20, 2025
- Reserved
- Aug 20, 2024
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 9.1 Critical | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | @huntr_ai |
Weaknesses
- CWE-434 Unrestricted Upload of File with Dangerous Type
Affected Products
| Product | Versions |
|---|---|
lightning-ai/pytorch-lightninglightning-ai |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.