Skip to main content
CVE-2024-5980VulnerabilityPublished Updated

CVE-2024-5980: lightning-ai/pytorch-lightning · Path Traversal

Affects lightning-ai/pytorch-lightningSource CVE Database V5

0

Not known to be exploited · CVSS 9.1 Critical.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.3% chance of exploitation in 30 days – higher than 70% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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. Weaponised: 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 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
PyPIpytorch-lightningpkg:pypi/pytorch-lightningOther threatsAffected
  • =2.2.4
Fixed in–

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

AI-suggested

1. Immediately monitor official lightning-ai channels for patches or updates addressing CVE-2024-5980 and apply them as soon as they become available. 2. Until patched, disable the plugin_server feature or restrict its usage to trusted internal environments only. 3. Implement strict validation and sanitization of all plugin archives before deployment, including scanning for path traversal sequences and verifying archive contents against expected directory structures. 4. Employ network segmentation and firewall rules to limit access to the /v1/runs API endpoint to authorized users and systems only. 5. Use runtime application self-protection (RASP) or host-based intrusion detection systems (HIDS) to detect anomalous file writes or execution attempts. 6. Enforce least privilege principles on the file system permissions for the LightningApp process to minimize the impact of arbitrary file writes. 7. Conduct regular security audits and penetration tests focusing on plugin deployment mechanisms. 8. Educate development and DevOps teams about the risks of accepting untrusted plugins and the importance of secure plugin management.

Description

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.

References

Community reviews

Loading reviews…