Skip to main content
VulnerabilityPublished Updated

CVE-2024-8019: PyTorch Lightning path traversal vulnerability

Affects pytorch-lightningSource GCVE Database

0
Compare

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

CVSS 3.0 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIpytorch-lightningAffected
  • <2.4.0
Fixed in
  • 2.4.0
PyPIlightningAffected
  • <2.4.0
Fixed in
  • 2.4.0

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

Community reviews

Loading reviews…