Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-434.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| lightning-ai | lightning-ai/pytorch-lightning | before 2.3.3 | 2.3.3 | Patch available | CNA |
| — | pytorch-lightning (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-4cv3-v7pv-rfhf |
- lightning-ai/pytorch-lightning Vendorlightning-ai Affected before 2.3.3 Fixed in 2.3.3 Patch available CNA
- pytorch-lightning (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-4cv3-v7pv-rfhf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:lightningai:pytorch_lightning:2.3.2:*:*:*:*:python:*:* | 2.3.2 | Vulnerable | lightning-ai |
- cpe:2.3:a:lightningai:pytorch_lightning:2.3.2:*:*:*:*:python:*:* Versions 2.3.2 Vulnerable ·lightning-ai
Remediation
- Fix · CNA lightning-ai/pytorch-lightning (lightning-ai) Fixed in 2.3.3
- Fix · GHSA-4cv3-v7pv-rfhf pytorch-lightning (PyPI) Fixed in 2.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-8019
- 2026-10-03 Alias added: GHSA-4cv3-v7pv-rfhf
References
More lightning-ai Pytorch Lightning vulnerabilities
- TI-2024-05067 RCE via Property/Class Pollution in lightning-ai/pytorch-lightning CVSS 3.1CRITICAL 9.8
- TI-2024-05541 Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning CVSS 3.1CRITICAL 9.8
- TI-2026-42224 PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter CVSS 4.0HIGH 8.4
- TI-2024-07434 Denial of Service in lightning-ai/pytorch-lightning CVSS 3.0HIGH 7.5
- TI-2026-32421 Compromise of PyTorch Lightning PyPi Package Versions CVSS 4.0CRITICAL 9.3
- TI-2022-00751 Code Injection in pytorchlightning/pytorch-lightning CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-8019 · CVE Program
- CVE-2024-8019 · NVD
- FIRST EPSS
- GHSA-4cv3-v7pv-rfhf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences