pytorch-lightningPYSEC-2026-3975
pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint
Critical9.1CVE-2024-5980 · Published Sep 10, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| pytorch-lightning PyPI | < 2.3.3 | 2.3.3 |
Details and references
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.
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Severity from
- the CVSS score
- Also known as
- CVE-2024-5980, GHSA-mr7h-w2qc-ffc2, PYSEC-2026-386
- nvd.nist.gov/vuln/detail/CVE-2024-5980
- github.com/Lightning-AI/pytorch-lightning/pull/20039
- github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
- github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3
- github.com/lightning-ai/pytorch-lightning
- huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3
- pypi.org/project/lightning
- github.com/advisories/GHSA-mr7h-w2qc-ffc2
More pytorch-lightning advisories
All| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 10 | Remote code execution in pytorch lightning CVE-2024-5452Critical9.8fixed in 2.3.3 | Critical9.8 | 2.3.3 |
| Jul 15 | PyTorch Lightning through 2.6.5, fixed in commit d710d68, contains a remote code execution vulnerability in the _load_state function that imports and executes attacker-controlled module names from checkpoint _instantiator hyperparameters. Attackers can craft malicious checkpoint files that bypass we CVE-2026-58659High7.8fixed in 2.6.6 | High7.8 | 2.6.6 |
| May 12 | PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization CVE-2026-31221High7.8no fix yet | High7.8 | No fix yet |
| May 7 | Compromise of PyTorch Lightning PyPi Package Versions CVE-2026-44484Critical9.8no fix yet | Critical9.8 | No fix yet |
| Mar 202025 | PyTorch Lightning denial of service vulnerability CVE-2024-8020High7.5no fix yet | High7.5 | No fix yet |
| Mar 202025 | PyTorch Lightning path traversal vulnerability CVE-2024-8019Critical9.1fixed in 2.4.0 | Critical9.1 | 2.4.0 |