CVE-2024-5980CWE-22

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

Critical · published June 27, 2024

CVSS v3.0
9.1
EPSS
1%
Percentile
70.6
In the wild
Unconfirmed
What it is

🔥 A sneaky path traversal vulnerability in the /v1/runs API of lightning-ai/pytorch-lightning v2.2.4 could let attackers drop malicious files anywhere on your system! Think of it like an unguarded storage room where someone can sneak in, pretend to be a delivery person, and dump crates of unauthorized materials in any corner — chaos ensues! An attacker could deploy malicious tar.gz plugins that write arbitrary files to any directory on your local filesystem. If they play their cards right, this could lead to remote code execution, giving them full control over your system — absolutely devastating!

Put simply

Think of it like an unguarded storage room where someone can sneak in, pretend to be a delivery person, and dump crates of unauthorized materials in any corner — chaos ensues! This vulnerability occurs due to improper handling of path traversal in the API endpoint, allowing attackers to exploit it when extracting tar.gz files and write files to unintended locations.

What to do

An attacker could deploy malicious tar.gz plugins that write arbitrary files to any directory on your local filesystem. If they play their cards right, this could lead to remote code execution, giving them full control over your system — absolutely devastating! To protect your system, update to version 2.2.5 or later immediately. Additionally, review tar.gz file handling processes and restrict plugin installations to trusted sources only. Don't forget to monitor logs for any suspicious activity! You've got this! Follow these steps and secure your system like a pro! 🛡️

The record
Technical detail
CVSS v3.0
9.1 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01318 · 70.6th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-06-27T18:46Z
EPSS history
Timeline
  • 27 JUN 18:46Z
    Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning
    cvelistv5