CVE-2022-31515

The Delor4/CarceresBE repository through 1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
—
EPSS
1%
Percentile
71.0
In the wild
Unconfirmed
What it is

⚠️ A tiny flaw in the Delor4/CarceresBE repository opens the door to absolute path traversal due to a careless use of the Flask send_file function! Think of it like a delivery service that delivers parcels to any address a customer claims, even if it’s a restricted zone — all it takes is a wrong instruction and sensitive files could be exposed! 📦 An attacker could exploit this vulnerability to access sensitive files outside the intended directory, potentially leaking confidential data or configuration files. While not confirmed to be exploited yet, the risk is real and could lead to unexpected data exposure!

Put simply

Think of it like a delivery service that delivers parcels to any address a customer claims, even if it’s a restricted zone — all it takes is a wrong instruction and sensitive files could be exposed! 📦 This vulnerability arises from the Flask send_file function being used without proper checks, allowing attackers to specify absolute paths and access files beyond the application's designated directory.

What to do

An attacker could exploit this vulnerability to access sensitive files outside the intended directory, potentially leaking confidential data or configuration files. While not confirmed to be exploited yet, the risk is real and could lead to unexpected data exposure! To mitigate this, ensure that your application properly validates and sanitizes any file paths passed to the send_file function. Also, consider updating to a safe version and implementing strict directory permissions to reduce exposure. You've got this! With these steps, you can secure your application and keep it safe from prying eyes. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:54Z
EPSS history
Timeline
  • 11 JUL 00:54Z
    The Delor4/CarceresBE repository through 1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5