CVE-2024-8019
Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
Reported by @huntr_ai · Published March 20, 2025
pytorch-lightning is fixed in 2.4.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pytorch-lightning | PyPI | 2.4.0 |
| lightning | PyPI | 2.4.0 |
| lightning-ai/pytorch-lightning | lightning-ai | 2.3.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lightning-ai | lightning-ai/pytorch-lightning | unspecified |
| PyPI | pytorch-lightning | 0 |
| lightning-ai | lightning-ai/pytorch-lightning | * |
| chainguard | nemo | * |
Timeline
- Mar 20, 2025 CVE Published
- Mar 20, 2025 EPSS Score (30 in total, the first dated here)
- Mar 20, 2025 PoC Published (3 in total, the first dated here)
- Mar 21, 2025 Coalition ESS Score (16 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8019
vulnetix vdb fixes CVE-2024-8019
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8019/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart