CVE-2024-8019: PyTorch Lightning path traversal vulnerability
Affects pytorch-lightningSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical : upgrade to 2.4.0 as a priority.
Data as of 16 Nov 2026, 16:35 UTC
- Patch
- Available – fixed in 2.4.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade pytorch-lightning and lightning to 2.4.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIpytorch-lightning | Affected
| Fixed in
|
| PyPIlightning | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade PyTorch Lightning to version 2.4.0 or later, where this vulnerability is fixed. No additional mitigations are indicated as the patch fully addresses the issue.
Description
A path traversal vulnerability exists in PyTorch Lightning version 2.3.2 on Windows hosts at the /api/v1/upload_file/ endpoint. This flaw allows attackers to write or overwrite arbitrary files by supplying crafted filenames, potentially leading to remote code execution by modifying critical or sensitive files. The issue is fixed in version 2.4.0.
References
- nvd.nist.gov/vuln/detail/CVE-2024-8019 (opens in a new tab)
- github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3970.yaml (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-507.yaml (opens in a new tab)
- github.com/pytorch/pytorch (opens in a new tab)
- huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd (opens in a new tab)
- pypi.org/project/pytorch-lightning (opens in a new tab)