Miggo Logo

CVE-2024-8019: PyTorch Lightning path traversal vulnerability

9.1

CVSS Score
3.0

Basic Information

EPSS Score
0.52023%
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
pytorch-lightningpip

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability explicitly occurs in the file upload endpoint handler. The key failure is insufficient validation of user-controlled filename parameters when writing files. Though the exact code isn't shown, the advisory's description of crafted filenames leading to arbitrary writes matches classic path traversal vulnerabilities in file upload handlers. The Windows-specific context suggests improper handling of path separators. The first patched version removed LightningApp code (commit 330af38), implying the vulnerable logic resided in the app component's file upload handling.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In li**tnin*-*i/pytor**-li**tnin* v*rsion *.*.*, * vuln*r**ility *xists in t** `Li**tnin**pp` w**n runnin* on * Win*ows *ost. T** vuln*r**ility o**urs *t t** `/*pi/v*/uplo**_*il*/` *n*point, *llowin* *n *tt**k*r to writ* or ov*rwrit* *r*itr*ry *il*s

Reasoning

T** vuln*r**ility *xpli*itly o**urs in t** *il* uplo** *n*point **n*l*r. T** k*y **ilur* is insu**i*i*nt `v*li**tion` o* us*r-*ontroll** `*il*n*m*` p*r*m*t*rs w**n writin* *il*s. T*ou** t** *x**t *o** isn't s*own, t** **visory's **s*ription o* *r**t*