---
title: "CVE-2024-5980: pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint"
url: https://erroneo.us/security/cve/CVE-2024-5980/
description: "CVE-2024-5980 (lightning (PyPI)): A vulnerability in the /v1/runs API endpoint of lightning-ai/pytorch-lightning v2.2.4 allows attackers to exploit path…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-06-27
date_modified: 2025-10-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-5980"
kev: false
cvss: 9.1
epss: 0.01318
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-5980: pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint

**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.3% , percentile 71: FIRST’s model estimates a 1.3% chance of exploitation activity in the next 30 days, higher than 71% 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 lightning (PyPI) <= 2.3.1, fixed in 2.3.3 . Check your lockfile, including transitive dependencies.

## What it is

A vulnerability in the /v1/runs API endpoint of lightning-ai/pytorch-lightning v2.2.4 allows attackers to exploit path traversal when extracting tar.gz files. When the LightningApp is running with the pluginserver, attackers can deploy malicious tar.gz plugins that embed arbitrary files with path traversal vulnerabilities. This can result in arbitrary files being written to any directory in the victim's local file system, potentially leading to remote code execution.

## Affected packages

- PyPI `lightning` <= 2.3.1 → fixed: 2.3.3

## 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.32% probability of exploitation activity in the next 30 days; percentile 71.

## Sources

- [GitHub Advisory GHSA-mr7h-w2qc-ffc2](https://github.com/advisories/GHSA-mr7h-w2qc-ffc2)
- [CVE.org record CVE-2024-5980](https://www.cve.org/CVERecord?id=CVE-2024-5980)
- [NVD entry CVE-2024-5980](https://nvd.nist.gov/vuln/detail/CVE-2024-5980)
- [huntr.com](https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3)
- [github.com](https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a)
- [github.com](https://github.com/Lightning-AI/pytorch-lightning/pull/20039)
- [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3)

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