VDB

CVE-2024-8019

CVE-2024-8019 PUBLISHED CVSS 9.1 CRITICAL

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

Reported by @huntr_ai · Published March 20, 2025

pytorch-lightning is fixed in 2.4.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pytorch-lightningPyPI2.4.0
lightningPyPI2.4.0
lightning-ai/pytorch-lightninglightning-ai2.3.3

Risk scores

CVSS 3.0
9.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Affected products

VendorProductVersions
lightning-ailightning-ai/pytorch-lightningunspecified
PyPIpytorch-lightning0
lightning-ailightning-ai/pytorch-lightning*
chainguardnemo*

Timeline

  • Mar 20, 2025 CVE Published
  • Mar 20, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 20, 2025 PoC Published (3 in total, the first dated here)
  • Mar 21, 2025 Coalition ESS Score (16 in total, the first dated here)
  • Feb 4, 2026 CVE Updated
  • Mar 10, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-8019
vulnetix vdb fixes CVE-2024-8019

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8019/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›