LIGHTNING · CVE-2024-5980 · Package
FIX → 2.3.3
The /v1/runs API endpoint extracts uploaded tar.gz plugins without checking file paths, so a crafted archive can write files anywhere on disk. An attacker who can reach the endpoint can overwrite files on the host, which can lead to remote code execution.
first public Jun 27, 2024 · 1 public exploit · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Only teams running a LightningApp with plugin_server enabled, where the /v1/runs endpoint accepts tar.gz plugin uploads. Projects that only import the library for training, without running that app server, are not exposed by this flaw. The sources do not say whether the endpoint requires authentication.
Not affected if library-only-use, plugin-server-disabled
Who cares lightning, ml-platform, python, pytorch-lightning
pip show lightning and pip show pytorch-lightning.Upgrade to 2.3.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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
lightning and pytorch-lightning: move to 2.3.3 or later.GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.