CVE-2024-5980
CRITICAL 9.8CVSS 3.1pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
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.
- Published
- 27 Jun 2024
- Last modified
- 16 Nov 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-22CWE-434
- Also known as
- GHSA-mr7h-w2qc-ffc2PYSEC-2026-386PYSEC-2026-3975
- Sources
- NVDJSONOSV GHSA-mr7h-w2qc-ffc2JSONOSV PYSEC-2026-386JSONOSV PYSEC-2026-3975JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lightningai | pytorch_lightningcpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:* |
>= 2.2.4, < 2.3.3 | 2.3.3 |
| OSV | PyPI | lightning | < 2.3.3 | 2.3.3 |
| OSV | PyPI | pytorch-lightning | < 2.3.3 | 2.3.3 |
References
- https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a · WEB
- https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-5980 · ADVISORY
- https://github.com/Lightning-AI/pytorch-lightning/pull/20039 · WEB
- https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3 · WEB
- https://github.com/lightning-ai/pytorch-lightning · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-386.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-3975.yaml · WEB
- https://pypi.org/project/lightning · WEB, PACKAGE
- https://github.com/advisories/GHSA-mr7h-w2qc-ffc2 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Jun 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Jun 2024)