CVE-2022-31507

The ganga-devs/ganga repository before 8.5.10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
—
EPSS
2%
Percentile
77.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky absolute path traversal is lurking in the ganga repository! This flaw affects versions before 8.5.10, allowing attackers to access files they shouldn’t. 😱 Think of it like a restaurant kitchen that lets anyone walk in and grab any ingredient without checking if they’re allowed — very inviting, but also super risky! An attacker could exploit this vulnerability to access sensitive files on the server, potentially leading to unauthorized data exposure. If they find crucial system files, it could even compromise your entire setup!

Put simply

Think of it like a restaurant kitchen that lets anyone walk in and grab any ingredient without checking if they’re allowed — very inviting, but also super risky! This vulnerability arises because the Flask `send_file` function is being used without proper checks, allowing requests for any file path rather than just those intended for public access.

What to do

An attacker could exploit this vulnerability to access sensitive files on the server, potentially leading to unauthorized data exposure. If they find crucial system files, it could even compromise your entire setup! Update your ganga repository to version 8.5.10 or later immediately to close this loophole. Additionally, audit your use of the `send_file` function to ensure proper path validation and security measures are in place. You've got this! With these steps, you can safeguard your application and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01697 · 77.0th percentile
Published
2022-07-11T00:54Z
EPSS history
Timeline
  • 11 JUL 00:54Z
    The ganga-devs/ganga repository before 8.5.10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5