pytorch-lightning
Affected
- introduced
0, fixed2.4.0(ecosystem)
Fixed versions
2.4.0
Fix
- Fixed version
2.4.0pip install --upgrade pytorch-lightning==2.4.0
Advisory
Also known as: CVE-2024-8019, PYSEC-2026-3970, PYSEC-2026-507
PyTorch Lightning path traversal vulnerability
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 2.4.0 (ecosystem)2.4.0
2.4.0pip install --upgrade pytorch-lightning==2.4.00, fixed 2.4.0 (ecosystem)2.4.0
2.4.0pip install --upgrade lightning==2.4.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0