CVE-2022-31575

The duducosmos/livro_python repository through 2018-06-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

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

⚠️ You could be one misdirected request away from leaking sensitive files! This vulnerability lets attackers exploit absolute path traversal due to unsafe use of Flask's send_file function in the duducosmos/livro_python repository. 🔍 Think of this like a delivery service that blindly follows any address on a package without checking if the destination is legitimate—anyone with the right package can access any room in the building! 📦 An attacker could potentially access any file on the server, exposing sensitive information or even important system files. This oversight could lead to data leaks or even complete control over the server environment—definitely not what you want!

Put simply

Think of this like a delivery service that blindly follows any address on a package without checking if the destination is legitimate—anyone with the right package can access any room in the building! 📦 The vulnerability arises from improper input validation in the Flask send_file function, allowing attackers to manipulate file paths and access unauthorized files on the server. This flaw has persisted since June 2018 due to a lack of updates.

What to do

An attacker could potentially access any file on the server, exposing sensitive information or even important system files. This oversight could lead to data leaks or even complete control over the server environment—definitely not what you want! To protect against this, make sure to sanitize file paths properly and restrict access to only trusted directories. Review the code in the duducosmos/livro_python repository and consider updating to a secured version if available or applying a patch. 🛡️ You've got this! With some careful adjustments, you can lock this down and keep your data safe. 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01392 · 72.1th percentile
Published
2022-07-11T01:01Z
EPSS history
Timeline
  • 11 JUL 01:01Z
    The duducosmos/livro_python repository through 2018-06-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5