CVE-2022-31546

The nlpweb/glance repository through 2014-06-27 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

โš ๏ธ Beware of a sneaky absolute path traversal lurking in the nlpweb/glance repository! An attacker could exploit the Flask send_file function and access sensitive files without much effort. ๐Ÿ” Think of it like a restaurant where the waiter delivers your order based on a vague description instead of checking the ticket. If the waiter isn't careful, they might serve someone else's dish instead! This vulnerability could allow an attacker to traverse the file system and read any files the application has access to. In the wrong hands, this could expose sensitive data, leading to serious security breaches and privacy violations.

Put simply

Think of it like a restaurant where the waiter delivers your order based on a vague description instead of checking the ticket. If the waiter isn't careful, they might serve someone else's dish instead! The vulnerability stems from the unsafe use of the Flask send_file function, which does not properly validate file paths, enabling attackers to manipulate the file path and access arbitrary files on the server.

What to do

This vulnerability could allow an attacker to traverse the file system and read any files the application has access to. In the wrong hands, this could expose sensitive data, leading to serious security breaches and privacy violations. To mitigate this risk, patch the nlpweb/glance repository to ensure that the send_file function is used safely. Implement proper path validation and consider restricting file access to specific directories to bolster security. You've got this! With a few tweaks, you can lock this vulnerability down and elevate your security game! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 ยท 71.0th percentile
Published
2022-07-11T00:58Z
EPSS history
Timeline
  • 11 JUL 00:58Z
    The nlpweb/glance repository through 2014-06-27 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5