CVE-2022-31512

The Atom02/flask-mvc repository through 2020-09-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

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

⚠️ A sneaky absolute path traversal lurks in the Atom02/flask-mvc repository! This vulnerability allows attackers to access sensitive files with just a misformatted URL. 🔥 Think of it like a delivery person who can enter any room in a hotel without a key card, just because the front desk didn't check their ID properly. Instead of being limited to their assigned deliveries, they can wander anywhere! This vulnerability could lead an attacker to read any sensitive files on the server, potentially exposing confidential data or application secrets. If left unaddressed, it could result in a significant data breach, putting your users’ information at risk.

Put simply

Think of it like a delivery person who can enter any room in a hotel without a key card, just because the front desk didn't check their ID properly. Instead of being limited to their assigned deliveries, they can wander anywhere! The flaw is due to the unsafe use of Flask's send_file function, which can facilitate absolute path traversal. This means that an attacker can craft a request that retrieves files outside of the intended directory, bypassing security measures.

What to do

This vulnerability could lead an attacker to read any sensitive files on the server, potentially exposing confidential data or application secrets. If left unaddressed, it could result in a significant data breach, putting your users’ information at risk. To mitigate this risk, update to the latest version of the flask-mvc repository where this issue has been addressed. Additionally, ensure that proper validation checks are in place for file paths being accessed by the send_file function. Regularly review your code for similar vulnerabilities. You've got this! By taking these steps, you’re on your way to securing your application and keeping those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01375 · 71.8th percentile
Published
2022-07-11T00:54Z
EPSS history
Timeline
  • 11 JUL 00:54Z
    The Atom02/flask-mvc repository through 2020-09-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5