CVE-2024-8019
CRITICAL 9.1CVSS 3.1PyTorch Lightning path traversal vulnerability
In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the LightningApp when running on a Windows host. The vulnerability occurs at the /api/v1/upload_file/ endpoint, allowing an attacker to write or overwrite arbitrary files by providing a crafted filename. This can lead to potential remote code execution (RCE) by overwriting critical files or placing malicious files in sensitive locations.
- Published
- 20 Mar 2025
- Last modified
- 16 Nov 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-434
- Also known as
- GHSA-4cv3-v7pv-rfhfPYSEC-2026-3970PYSEC-2026-507
- Sources
- NVDJSONOSV GHSA-4cv3-v7pv-rfhfJSONOSV PYSEC-2026-3970JSONOSV PYSEC-2026-507JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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:2.3.2:*:*:*:*:python:*:* |
= 2.3.2 | |
| OSV | PyPI | pytorch-lightning | < 2.4.0 | 2.4.0 |
| OSV | PyPI | lightning | < 2.4.0 | 2.4.0 |
References
- https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a · Patch, WEB
- https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-8019 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3970.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-507.yaml · WEB
- https://github.com/pytorch/pytorch · PACKAGE
- https://pypi.org/project/pytorch-lightning · WEB, PACKAGE
- https://github.com/advisories/GHSA-4cv3-v7pv-rfhf · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 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 20 Mar 2025)