---
title: "CVE-2024-8019: PyTorch Lightning path traversal vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-8019/
description: "CVE-2024-8019 (pytorch-lightning (PyPI)): In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the LightningApp when running on a…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-03-20
date_modified: 2025-03-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-8019"
kev: false
cvss: 9.1
epss: 0.01122
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-8019: PyTorch Lightning path traversal vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.1% , percentile 66: FIRST’s model estimates a 1.1% chance of exploitation activity in the next 30 days, higher than 66% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes pytorch-lightning (PyPI) < 2.4.0, fixed in 2.4.0 . Check your lockfile, including transitive dependencies.

## What it is

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/uploadfile/ 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 packages

- PyPI `pytorch-lightning` < 2.4.0 → fixed: 2.4.0

## Affected products (CVE record)

- lightning-ai lightning-ai/pytorch-lightning: unspecified < 2.3.3

## Severity

- @huntr_ai CVSS 3.0: 9.1 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub CVSS 3.1: 9.1 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 1.12% probability of exploitation activity in the next 30 days; percentile 66.

## Sources

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

---
Source page: https://erroneo.us/security/cve/CVE-2024-8019/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
