GitHub Advisoryadvisory · PyPI
GHSA-4cv3-v7pv-rfhf PyTorch Lightning path traversal vulnerability
CRITICAL
Official page ↗
- Aliases
- CVE-2024-8019
- Ecosystem
- PyPI
- Packages
- pytorch-lightning
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Weaknesses
- CWE-434
- Reviewed
- 2025-03-21
Affected packages
• PyPI pytorch-lightning: < 2.4.0 → fixed in 2.4.0
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.
Related
Alias · CVE (1)
- CVE-2024-8019 In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on a Windows host. vulnerability
Weakness · CWE (1)
- CWE-434 Unrestricted Upload of File with Dangerous Type weakness