Skip to main content
← All vulnerabilities
CVE-2024-5980GHSA-MR7H-W2QC-FFC2PYSEC-2026-386PYSEC-2026-3975

Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • lightning-ai lightning-ai/pytorch-lightning

    fixed in 2.3.3

  • lightningPyPI

    fixed in 2.3.3

  • pytorch-lightningPyPI

    fixed in 2.3.3

References 2

huntr.com

GitHub · lightning-ai/pytorch-lightning