Skip to content
Fencer Vulns
critical 9.1

CVE-2024-5980 json

Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning

published 2024-06-27 2 y ago modified 2026-09-10 59 d ago also GHSA-mr7h-w2qc-ffc2 , PYSEC-2026-386 , PYSEC-2026-3975 , EUVD-2024-2112

cvss
9.1
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 71%
public exploits
0
none known

Summary

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 plugin_server, 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.

Patch / fix

  • pypi lightning 2.3.3
  • pypi pytorch-lightning 2.3.3
  • lightning-ai lightning-ai/pytorch-lightning 2.3.3

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi lightning
<2.3.3
2.3.3
pypi pytorch-lightning
<2.3.3
2.3.3

Affected products

  • lightning-ai lightning-ai/pytorch-lightning
  • lightning_ai lightning_ai\/pytorch_lightning

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.