CVE-2024-8019 json
Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning
published 2025-03-20 19 mo ago modified 2026-09-10 59 d ago also GHSA-4cv3-v7pv-rfhf , PYSEC-2026-3970 , PYSEC-2026-507 , EUVD-2025-6932
- cvss
- 9.1
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi pytorch-lightning 2.4.0
- pypi lightning 2.4.0
- lightning-ai lightning-ai/pytorch-lightning 2.3.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.12% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pytorch-lightning | <2.4.0 |
2.4.0 |
| pypi | lightning | <2.4.0 |
2.4.0 |
Affected products
- lightning-ai lightning-ai/pytorch-lightning
Classification
- Weakness
-
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
-
github.com
/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
web, patch
-
huntr.com
/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-8019
advisory
-
github.com
/pytorch/pytorch
package
-
pypi.org
/project/pytorch-lightning
package
-
github.com
/advisories/GHSA-4cv3-v7pv-rfhf
advisory
Sources
- CVE List CVE-2024-8019
- GitHub Advisory GHSA-4cv3-v7pv-rfhf
- NVD CVE-2024-8019
- OSV PYSEC-2026-507
- OSV PYSEC-2026-3970
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.