pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
CVE-2024-5980 · GHSA-mr7h-w2qc-ffc2 · published 2024-06-27 · updated 2026-11-16
- Severity
- Critical
- CVSS score
- 9.1
- Chance of exploitation (EPSS)
- 1.3%
- Fixed in
- 2.3.3
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
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.
Upgrade lightning to 2.3.3 or later, and pytorch-lightning to 2.3.3 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lightning | PyPI | < 2.3.3 | 2.3.3 |
| pytorch-lightning | PyPI | < 2.3.3 | 2.3.3 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalMalicious code in lightning (PyPI)lightning, lightning
- CriticalCompromise of PyTorch Lightning PyPi Package Versionspytorch-lightning, pytorch-lightning
- CriticalPyTorch Lightning path traversal vulnerabilitylightning, pytorch-lightning
- CriticalRemote code execution in pytorch lightninglightning, pytorch-lightning
- CriticalCode Injection in PyTorch Lightningpytorch-lightning
- HighPyTorch Lightning allows arbitrary code execution through checkpoint _instantiator hyperparameterslightning
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.