PT-2024-30098 · Unknown · Parisneo/Lollms-Webui
Published
2024-05-22
·
Updated
2024-05-24
·
CVE-2024-4267
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
parisneo/lollms-webui version 9.5
Description
A remote code execution vulnerability exists in the parisneo/lollms-webui, specifically within the
open file module. The vulnerability arises due to improper neutralization of special elements used in a command within the open file function. An attacker can exploit this vulnerability by crafting a malicious file path that, when processed by the open file function, executes arbitrary system commands or reads sensitive file content. This issue is present in the code where subprocess.Popen is used unsafely to open files based on user-supplied paths without adequate validation, leading to potential command injection.Recommendations
As a temporary workaround, consider disabling the
open file function until a patch is available. Restrict access to the open file module to minimize the risk of exploitation. Avoid using user-supplied paths in the affected open file function until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Parisneo/Lollms-Webui