CVE-2024-5980Lightningai Pytorch Lightning
Critical 9.8 No auth needed
Follow: this CVE · Lightningai · Lightningai Pytorch Lightning We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Jun 27, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pytorch Lightning.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lightning |
< 2.3.3 |
2.3.3 |
pip install "lightning>=2.3.3" |
| PyPI | lightning |
< 2.3.3 |
2.3.3 |
pip install "lightning>=2.3.3" |
| PyPI | pytorch-lightning |
< 2.3.3 |
2.3.3 |
pip install "pytorch-lightning>=2.3.3" |
| PyPI | pytorch-lightning |
< 2.3.3 |
2.3.3 |
pip install "pytorch-lightning>=2.3.3" |
Per OSV / GitHub Advisories (GHSA-mr7h-w2qc-ffc2, PYSEC-2026-386, PYSEC-2026-3975). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lightningai | pytorch_lightning | ≥ 2.2.4 < 2.3.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- huntr.com Exploit Third Party Advisory