CVE-2022-31507: Ganga allows absolute path traversal
9.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.31624%
CWE
Published
7/13/2022
Updated
9/20/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ganga | pip | < 8.5.10 | 8.5.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the insecure use of os.path.join() in the job_browse route handler before passing the path to flask.send_file. The commit diff shows the fix replaced os.path.join() with werkzeug.utils.safe_join(), explicitly addressing path traversal. The 'path' parameter is user-controlled input that flows directly into this vulnerable path construction, making the job_browse function the entry point for the exploit. The combination of user-controlled input, unsafe path joining, and send_file usage creates the critical vulnerability.