Skip to main content
VulnerabilityPublished Updated

CVE-2024-5980: pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint

Affects lightningSource GCVE Database

0
Compare
Authoritative record:CVE-2024-5980· Critical 9.1

Not known to be exploited · CVSS 9.1 Critical : upgrade to 2.3.3 as a priority.

Data as of 16 Nov 2026, 15:33 UTC

CVSS 3.0 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.3.3
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 27 Jun 2024

  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 lightning and pytorch-lightning to 2.3.3.

Affected software

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

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and users should upgrade to PyTorch Lightning version 2.3.3 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory. Applying the official fix fully addresses the issue.

Description

PyTorch Lightning versions prior to 2.3.3 contain a critical vulnerability (CVE-2024-5980) in the /v1/runs API endpoint that allows attackers to perform arbitrary file writes via path traversal when extracting tar.gz files. This occurs when the LightningApp is running with the plugin_server, enabling malicious plugins to write files to arbitrary locations on the victim's file system, potentially leading to remote code execution. The vulnerability has a CVSS score of 9.1 and is fixed in version 2.3.3.

References

Community reviews

Loading reviews…