CVE-2024-4498

Path Traversal and RFI Vulnerability in parisneo/lollms-webui

State
Published
Severity
7.7 High
Published
Jun 25, 2024
Updated
Aug 1, 2024
Reserved
May 4, 2024

Read the record on cve.org

Description

A Path Traversal and Remote File Inclusion (RFI) vulnerability exists in the parisneo/lollms-webui application, affecting versions v9.7 to the latest. The vulnerability arises from insufficient input validation in the `/apply_settings` function, allowing an attacker to manipulate the `discussion_db_name` parameter to traverse the file system and include arbitrary files. This issue is compounded by the bypass of input filtering in the `install_binding`, `reinstall_binding`, and `unInstall_binding` endpoints, despite the presence of a `sanitize_path_from_endpoint(data.name)` filter. Successful exploitation enables an attacker to upload and execute malicious code on the victim's system, leading to Remote Code Execution (RCE).

Scores

CVSSScoreVectorSource
3.07.7 HighCVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H@huntr_ai

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
parisneo/lollms-webuiparisneo
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.