Critical severity · published Mar 20, 2025
CVE-2024-8019
Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
9.1
CVSS
1.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
lightning-ai/pytorch-lightning · lightning-ai
before 2.3.3 · source: vendor
PL
Pytorch Lightning · Lightningai
2.3.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-8019
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-8019
Patch
https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
Exploit
https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd
More from lightning-ai/pytorch-lightning
9.8
CVE-2024-5980
Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning
9.8
CVE-2024-5452
RCE via Property/Class Pollution in lightning-ai/pytorch-lightning
7.5
CVE-2024-8020
Denial of Service in lightning-ai/pytorch-lightning
