Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lightning
  4. ›
  5. CVE-2024-5980

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

June 27, 2024 (updated October 15, 2025)

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.

References

  • github.com/Lightning-AI/pytorch-lightning/pull/20039
  • github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3
  • github.com/advisories/GHSA-mr7h-w2qc-ffc2
  • github.com/lightning-ai/pytorch-lightning
  • github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
  • huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3
  • nvd.nist.gov/vuln/detail/CVE-2024-5980

Code Behaviors & Features

Detect and mitigate CVE-2024-5980 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.3

Fixed versions

  • 2.3.3

Solution

Upgrade to version 2.3.3 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

pypi/lightning/CVE-2024-5980.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 27 Oct 2025 00:22:22 +0000.