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 June 28, 2024)

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/advisories/GHSA-mr7h-w2qc-ffc2
  • github.com/lightning-ai/pytorch-lightning
  • 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 up to 2.3.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • 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 Wed, 14 May 2025 12:15:55 +0000.