CVE-2024-5980
Critical 9.1No known exploitationFix availableArbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning
Vendor advisory: GHSA-mr7h-w2qc-ffc2
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-22
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| lightning-ai | lightning-ai/pytorch-lightning | all versions before 2.3.3 | 2.3.3 | CVE Program |
| pip | lightning | all versions before 2.3.3 | 2.3.3 | GitHub Advisory Database |
| pip | pytorch-lightning | all versions before 2.3.3 | 2.3.3 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by @huntr_ai
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database