CVE-2024-8019

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductLightningai Pytorch Lightning
PublishedMar 20, 2025
First seenMar 20, 2025

How to fix

Update
  • pytorch-lightning2.4.0 or later
  • lightning2.4.0 or later

Affected products

ProductAffected versionsFixed in
lightningai pytorch_lightning2.3.2—
pytorch-lightningPyPIv < 2.4.02.4.0
lightningPyPIv < 2.4.02.4.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-8019 · Lightningai Pytorch Lightning · Dark Radar