CVE-2024-8019
Critical 9.1No known exploitationFix availableArbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
Vendor advisory: GHSA-4cv3-v7pv-rfhf
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-434
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| lightning-ai | lightning-ai/pytorch-lightning | all versions before 2.3.3 | 2.3.3 | CVE Program |
| pip | lightning | all versions before 2.4.0 | 2.4.0 | GitHub Advisory Database |
| pip | pytorch-lightning | all versions before 2.4.0 | 2.4.0 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by @huntr_ai
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database