CVE-2024-8019: PyTorch Lightning path traversal vulnerability
9.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52023%
CWE
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| pytorch-lightning | pip |
Vulnerability Intelligence
Miggo AI
Root 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.