Intel

AIKIDO-2024-10180

lightning is vulnerable to Unrestricted Upload of File with Dangerous Type

CVE-2024-5980Published Jul 15, 2024
July 15, 2024

91

CVE Score

Critical

Unrestricted Upload of File with Dangerous Type

Are you affected? Scan for Free

TL;DR

A vulnerability in the /v1/runs API endpoint of lightning-ai/pytorch-lightning allows attackers to exploit path traversal when extracting tar.gz files. When the LightningApp runs with the plugin_server, attackers can deploy malicious tar.gz plugins that embed arbitrary files with path traversal vulnerabilities. This can lead to arbitrary files being written to any directory on the victim's local file system, potentially enabling Remote Code Execution (RCE).

How do I fix this?

Upgrade lightning to a patch version.

Who does this affect?

You are affected if you are using a vulnerable version of the package.

Package

Versions

0.2 - 2.3.2

Fixed in 2.3.3

Background info

lightning is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 0.2 - 2.3.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea