CVE-2022-31523

The PaddlePaddle/Anakin repository through 0.1.1 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 sneaky path traversal vulnerability is lurking in the PaddlePaddle/Anakin repository up to version 0.1.1! This flaw allows absolute file access, and it's absolutely devastating if exploited! Think of it like a restaurant that lets anyone peek behind the kitchen doors without checking their reservation — you could end up accessing all the secret recipes or worse! An attacker could potentially access sensitive files on the server, leading to exposure of crucial information or even malicious modifications. This can compromise the integrity of your application and the data it handles. That's a recipe for disaster!

Put simply

Think of it like a restaurant that lets anyone peek behind the kitchen doors without checking their reservation — you could end up accessing all the secret recipes or worse! This vulnerability arises from the unsafe use of Flask's send_file function, permitting attackers to manipulate file paths and gain access to files outside the intended directory.

What to do

An attacker could potentially access sensitive files on the server, leading to exposure of crucial information or even malicious modifications. This can compromise the integrity of your application and the data it handles. That's a recipe for disaster! Update PaddlePaddle/Anakin to the latest version above 0.1.1 to mitigate this flaw. Review all file access functions to ensure they validate paths properly and restrict access to allowed directories. Implement rigorous input sanitization for file paths as an added layer of security. You've got this! Follow these steps, and you'll be on your way to keeping the online world secure. 🛡️

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