CVE-2024-8019: lightning-ai/pytorch-lightning - Path Traversal
- Cve: CVE-2024-8019
- Name: lightning-ai/pytorch-lightning - Path Traversal
- 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.
- Impact: Attackers can overwrite critical files or place malicious files, potentially leading to remote code execution or system compromise.
- Remediation: Update to the latest version of lightning-ai/pytorch-lightning.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Epss score: 0.01122
- Epss percentile: 0.67042
- Assignee: [email protected]
- Published at: 2025-03-20T10:15:39Z
- Age in days: 614
- Modified at: 2026-06-17T08:21:41Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8019
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd | nvd | 2025-03-20 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a | nvd | Patch |
| https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lightningai:pytorch_lightning | = 2.3.2 | no | nvd | /v1/products/lightningai/pytorch_lightning |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pytorch/pytorch | package | yes | /v1/repositories/pytorch/pytorch |
| lightning-ai/pytorch-lightning | commit | yes | /v1/repositories/lightning-ai/pytorch-lightning |
Index
- Repositories: 307
- Repositories high signal: 129
- Packages: 2
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-03-20
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts