CVE-2022-31557

The seveas/golem repository through 2016-05-17 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

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

⚠️ A single unsafe call to the Flask send_file function could let attackers access sensitive files directly! Think of it like a restaurant that serves food without checking the order slips — if the kitchen accepts any request without verification, diners might end up with someone else's meal, or worse, a bill for a fancy dish they never ordered! An attacker could exploit this vulnerability to access any file on the server, potentially exposing sensitive information or critical system files. This could lead to data breaches, loss of confidentiality, and a major headache for the admin trying to clean up the mess!

Put simply

Think of it like a restaurant that serves food without checking the order slips — if the kitchen accepts any request without verification, diners might end up with someone else's meal, or worse, a bill for a fancy dish they never ordered! This absolute path traversal flaw occurs because the Flask send_file function is used without proper safeguards, allowing attackers to traverse the directory structure and access files they shouldn't.

What to do

An attacker could exploit this vulnerability to access any file on the server, potentially exposing sensitive information or critical system files. This could lead to data breaches, loss of confidentiality, and a major headache for the admin trying to clean up the mess! To mitigate this vulnerability, ensure that the Flask send_file function is used safely by implementing strict input validation and restricting the file paths it can access. Regularly audit your code and dependencies for similar flaws. You've got this! With a few simple fixes, you can keep your application secure and running smoothly! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01245 · 69.1th percentile
Published
2022-07-11T00:59Z
EPSS history
Timeline
  • 11 JUL 00:59Z
    The seveas/golem repository through 2016-05-17 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5