CVE-2024-8019

GHSA-4cv3-v7pv-rfhf · published 20 Mar 2025 · updated 16 Nov 2026

Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning

9.1CriticalCVSS 9.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.3.3, lightning 2.4.0 and pytorch-lightning 2.4.0.

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, products and packages with version ranges

VendorProductVersionsFixed
Lightning-AI<2.3.32.3.3
pypi: lightning<2.4.02.4.0
pypi: pytorch-lightning<2.4.02.4.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in lightning (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-8019 severity on Zeptric[![CVE-2024-8019](https://zeptric.io/badge/cve/CVE-2024-8019.svg)](https://zeptric.io/cve/CVE-2024-8019)