# CVE-2024-8019: Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning

> CVE-2024-8019: Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning. CVSS 9.1 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2024-8019
Last updated: 2026-06-17T08:21:41Z

- Published: 2025-03-20 10:08 UTC · Updated: 2026-06-17 08:21 UTC · Assigner: @huntr\_ai
- CVSS: 9.1 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- EPSS: 1.1%, 66th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-434

## 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.

## Affected vendors and products

- lightning-ai: lightning-ai/pytorch-lightning

## Tracked companies

- [Lightning AI](https://rewindex.com/company/lightning-ai.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-8019)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-8019)
- [https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a](https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a)
- [https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd](https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-8019 · Markdown: https://rewindex.com/cve/CVE-2024-8019.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-8019 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:49:27.996Z
