CVE-2024-41704

LibreChat through 0.7.4-rc1 does not validate the normalized pathnames of images

Critical ยท published July 22, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
51.2
In the wild
Unconfirmed
What it is

๐Ÿšจ A sneaky flaw in LibreChat means attackers can access any image on your server with just the right pathname! Think of it like a restaurant with a hidden door that lets anyone wander into the kitchen โ€” without even needing a reservation. This vulnerability exposes sensitive images that should remain locked away, just waiting for a clever intruder to take advantage. An attacker could exploit this vulnerability to view or misuse sensitive images stored on your server, potentially leading to dire consequences like data leaks or privacy breaches. The risk here is absolutely devastating โ€” once they have access, they can share or manipulate data that could harm your users and your reputation. ๐Ÿ”ฅ

Put simply

Think of it like a restaurant with a hidden door that lets anyone wander into the kitchen โ€” without even needing a reservation. This vulnerability exposes sensitive images that should remain locked away, just waiting for a clever intruder to take advantage. LibreChat versions up to 0.7.4-rc1 fail to properly validate normalized pathnames of images, allowing an attacker to traverse directories and access unauthorized files.

What to do

An attacker could exploit this vulnerability to view or misuse sensitive images stored on your server, potentially leading to dire consequences like data leaks or privacy breaches. The risk here is absolutely devastating โ€” once they have access, they can share or manipulate data that could harm your users and your reputation. ๐Ÿ”ฅ To secure your environment, immediately upgrade LibreChat to the latest version (post 0.7.4-rc1) where this issue has been resolved. Regularly audit your image storage permissions to ensure unauthorized access is blocked. Don't forget to test your application thoroughly after applying the patch! You've got this! With these steps, you're setting up ironclad defenses for your application! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS v3.1
9.1 ยท CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00666 ยท 51.2th percentile
Published
2024-07-22T00:00Z
EPSS history
Timeline
  • 22 JUL 00:00Z
    LibreChat through 0.7.4-rc1 does not validate the normalized pathnames of images
    cvelistv5