CVE-2024-5980

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*

History

15 Oct 2025, 13:15

Type Values Removed Values Added
CWE CWE-434 CWE-22
References
  • () https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a -

30 Jul 2025, 17:53

Type Values Removed Values Added
CPE cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*
First Time Lightningai
Lightningai pytorch Lightning
References () https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3 - () https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3 - Exploit, Third Party Advisory
CVSS v2 : unknown
v3 : 9.1
v2 : unknown
v3 : 9.8

Information

Published : 2024-06-27 19:15

Updated : 2025-10-15 13:15


NVD link : CVE-2024-5980

Mitre link : CVE-2024-5980

CVE.ORG link : CVE-2024-5980


JSON object : View

Products Affected

lightningai

  • pytorch_lightning
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')