CRITICAL🇵🇱 Wersja polska

CVE-2024-1873

CVSS 9.1v3.1pub. 2024-06-06upd. 2025-10-15

parisneo/lollms-webui is vulnerable to path traversal and denial of service attacks due to an exposed `/select_database` endpoint in version a9d16b0. The endpoint improperly handles file paths, allowing attackers to specify absolute paths when interacting with the `DiscussionsDB` instance. This flaw enables attackers to create directories anywhere on the system where the application has permissions, potentially leading to denial of service by creating directories with names of critical files, such as HTTPS certificate files, causing server startup failures. Additionally, attackers can manipulate the database path, resulting in the loss of client data by constantly changing the file location to an attacker-controlled location, scattering the data across the filesystem and making recovery difficult.

🤖 AI Analysis
How it works

The `/select_database` endpoint improperly validates file paths provided by users, accepting absolute paths without any restrictions. An attacker can specify any location in the file system when interacting with the `DiscussionsDB` instance, which allows creating directories anywhere the application has permissions. By creating a directory named after critical files (e.g., HTTPS certificates), an attacker can prevent the server from starting correctly. Additionally, constantly changing the database path to a location controlled by the attacker causes client data to be scattered across the entire file system, making recovery difficult.

Impact

An attacker can cause service unavailability (denial of service) by disrupting the server startup process, and can also cause permanent data loss for clients by manipulating the database location and scattering its contents across the file system.

Mitigation & patch

The application should be updated to a version containing the fix available in commit 02e829b5653a1aa5dbbe9413ec84f96caa1274e8 in the project's GitHub repository. Additionally, it is recommended to restrict access to the `/select_database` endpoint exclusively to trusted users and implement validation and sanitization of all file paths provided by users.

Who is affected

parisneo/lollms-webui in version a9d16b0

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Lollms Web Ui

    APP
    Lollms
    all versions
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Path TraversalDoS
CWE
References

Related vulnerabilities

CVE-2026-33340CRITICAL9.1PL ✓same product

SSRF i brak uwierzytelnienia w lollms-webui — dostęp do wewnętrznych zasobów

CVE-2024-8898CRITICAL9.8PL ✓same product

Path traversal w API install/uninstall lollms-webui V12 (Strawberry)

CVE-2024-8581CRITICAL9.1PL ✓same product

Path Traversal w lollms-webui umożliwia usunięcie dowolnego pliku

CVE-2024-2624CRITICAL9.8PL ✓same product

Path Traversal i arbitrary file upload w parisneo/lollms-webui

CVE-2024-2360CRITICAL9.8PL ✓same product

Path Traversal prowadzący do RCE w parisneo/lollms-webui