Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-5980 EUVD-2024-2112GHSA-mr7h-w2qc-ffc2PYSEC-2026-386PYSEC-2026-3975

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

Published Jun 27, 2024 · Updated Oct 21, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
lightning-ai lightning-ai/pytorch-lightning unspecified – < 2.3.3 2.3.3

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI lightning < 2.3.3 2.3.3 GHSA-mr7h-w2qc-ffc2
PyPI pytorch-lightning < 2.3.3 2.3.3 PYSEC-2026-3975

References