Live threats

All CVEs / Lightningai

CVE-2024-8019Lightningai Pytorch Lightning

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Mar 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-434
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pytorch Lightning.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI lightning < 2.4.0 2.4.0 pip install "lightning>=2.4.0"
PyPI lightning < 2.4.0 2.4.0 pip install "lightning>=2.4.0"
PyPI pytorch-lightning < 2.4.0 2.4.0 pip install "pytorch-lightning>=2.4.0"
PyPI pytorch-lightning < 2.4.0 2.4.0 pip install "pytorch-lightning>=2.4.0"

Per OSV / GitHub Advisories (GHSA-4cv3-v7pv-rfhf, PYSEC-2026-3970, PYSEC-2026-507). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lightningaipytorch_lightning2.3.2

Official sources

References

Links published by the sources. Open them with care.