CVE-2024-5980Critical· 9.1▾ Midnightpytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
▾ Midnight zone — Critical, or high with PoC / in-the-wild
impact 50.1 · likelihood 0.3 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
1.3%
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.
lightning < 2.3.3Upgrade to a patched release:
lightning 2.3.3Connected by shared product, vendor, weakness, or advisory.