CVE-2024-8019
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.
How to fix
- pytorch-lightning2.4.0 or later
- lightning2.4.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lightningai pytorch_lightning | 2.3.2 | — |
| pytorch-lightningPyPI | v < 2.4.0 | 2.4.0 |
| lightningPyPI | v < 2.4.0 | 2.4.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.