CVE-2022-31530

The csm-aut/csm repository through 3.5 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

⚠️ An absolute path traversal vulnerability exists in the csm-aut/csm repository up to version 3.5! This sneaky flaw lets attackers access files they shouldn’t, so let’s break it down! Think of it as a delivery person following a poorly written address that leads them straight into a restricted area of your warehouse. Instead of just dropping off packages, they can wander in and access sensitive documents! This could allow an attacker to read any file on the server, leading to potentially devastating data leaks. Imagine sensitive configurations or user data exposed, all due to a little oversight in how files are served!

Put simply

Think of it as a delivery person following a poorly written address that leads them straight into a restricted area of your warehouse. Instead of just dropping off packages, they can wander in and access sensitive documents! This vulnerability arises from the unsafe use of Flask's send_file function, which permits absolute path traversal, enabling attackers to specify and access arbitrary files on the server.

What to do

This could allow an attacker to read any file on the server, leading to potentially devastating data leaks. Imagine sensitive configurations or user data exposed, all due to a little oversight in how files are served! To remediate this, upgrade to version 3.5.1 or later immediately. Additionally, review your file access logic to ensure that only intended files can be accessed. Implement checks to sanitize user input and restrict file paths appropriately. You’ve got this! Fixing this issue will bolster your security posture and keep those files safe! 🛡️

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