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.
References (2)
Core 2
Core References
Patch
https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
Exploit, Third Party Advisory
https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd
Scores
CVSS v3
9.1
EPSS
0.0210
EPSS Percentile
84.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-434
Status
published
Products (2)
lightningai/pytorch_lightning
2.3.2
pypi/pytorch-lightning
0 - 2.4.0PyPI
Published
Mar 20, 2025
Tracked Since
Feb 18, 2026