CVE-2024-3025CWE-23

Path Traversal in mintplex-labs/anything-llm

Critical · published April 10, 2024

CVSS v3.0
9.9
EPSS
1%
Percentile
62.7
In the wild
Unconfirmed
What it is

🚨 A sneaky path traversal vulnerability lurks in mintplex-labs/anything-llm that could let attackers read or delete sensitive files — all through a simple logo upload! 🔥 Think of it like a restaurant kitchen where anyone can slip their own ingredient list under the door, opening the way for inappropriate substitutions in your food. In this case, the logo filename is the suspect that allows bad actors to access restricted files outside the designated directory. With this vulnerability, an attacker could exploit the `/api/system/upload-logo` and `/api/system/logo` endpoints to directly access, read, or even delete vital files, such as your application’s database. The potential for data loss or unauthorized information exposure is absolutely devastating, especially if sensitive credentials are involved.

Put simply

Think of it like a restaurant kitchen where anyone can slip their own ingredient list under the door, opening the way for inappropriate substitutions in your food. In this case, the logo filename is the suspect that allows bad actors to access restricted files outside the designated directory. This path traversal flaw arises from inadequate validation of user input in the logo filename, allowing attackers to manipulate the filename parameter to access files beyond the intended directory.

What to do

With this vulnerability, an attacker could exploit the `/api/system/upload-logo` and `/api/system/logo` endpoints to directly access, read, or even delete vital files, such as your application’s database. The potential for data loss or unauthorized information exposure is absolutely devastating, especially if sensitive credentials are involved. To remediate this issue, implement strict validation and sanitization for user-supplied input in the logo filename functionality. Ensure that file access is restricted only to the designated directory and update your validation logic to block any traversal attempts by using a library if necessary. Remember to patch to the latest version as soon as possible! You've got this! Follow these steps, and you'll be one step closer to securing your application! 🛡️

The record
Technical detail
CVSS v3.0
9.9 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01008 · 62.7th percentile
Weakness
CWE-23 · Relative Path Traversal
Published
2024-04-10T17:07Z
EPSS history
Timeline
  • 10 APR 17:07Z
    Path Traversal in mintplex-labs/anything-llm
    cvelistv5