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.
Advisories
Source ID Title
EUVD EUVD EUVD-2024-2112 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.
Github GHSA Github GHSA GHSA-mr7h-w2qc-ffc2 pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 21 Oct 2025 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Lightning Ai
Lightning Ai lightning Ai\/pytorch Lightning
CPEs cpe:2.3:a:lightning_ai:lightning_ai\/pytorch_lightning:*:*:*:*:*:*:*:*
Vendors & Products Lightning Ai
Lightning Ai lightning Ai\/pytorch Lightning
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 15 Oct 2025 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-434

Wed, 15 Oct 2025 13:00:00 +0000


Wed, 30 Jul 2025 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Lightningai
Lightningai pytorch Lightning
CPEs cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*
Vendors & Products Lightningai
Lightningai pytorch Lightning
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published:

Updated: 2025-10-21T14:13:14.205Z

Reserved: 2024-06-13T17:47:39.581Z

Link: CVE-2024-5980

cve-icon Vulnrichment

Updated: 2024-08-01T21:25:03.173Z

cve-icon NVD

Status : Modified

Published: 2024-06-27T19:15:18.803

Modified: 2025-10-15T13:15:48.493

Link: CVE-2024-5980

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.