Live threats

All CVEs / Lightningai

CVE-2024-5980Lightningai Pytorch Lightning

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Jun 27, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pytorch Lightning.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI lightning < 2.3.3 2.3.3 pip install "lightning>=2.3.3"
PyPI lightning < 2.3.3 2.3.3 pip install "lightning>=2.3.3"
PyPI pytorch-lightning < 2.3.3 2.3.3 pip install "pytorch-lightning>=2.3.3"
PyPI pytorch-lightning < 2.3.3 2.3.3 pip install "pytorch-lightning>=2.3.3"

Per OSV / GitHub Advisories (GHSA-mr7h-w2qc-ffc2, PYSEC-2026-386, PYSEC-2026-3975). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lightningaipytorch_lightning≥ 2.2.4 < 2.3.3

Official sources

References

Links published by the sources. Open them with care.