CVE-2024-4267 Remote Code Execution in parisneo/lollms-webui
Attackers can execute arbitrary system commands or read sensitive files via malicious file paths in the open_file module of lollms-webui.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-4267?
CVE-2024-4267 is a high-severity command injection vulnerability in parisneo/lollms-webui, published on 22 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A remote code execution (RCE) vulnerability exists in the parisneo/lollms-webui, specifically within the 'open_file' module, version 9.5. 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.
Weakness: CWE-77
Which versions are affected by CVE-2024-4267?
It affects 1 product.
Products include Lollms Lollms-Webui.
How do I fix CVE-2024-4267?
No fix has been published for CVE-2024-4267 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-4267 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4267 exists.
Other vulnerabilities in parisneo/lollms-webui
- CVE-2024-1646 Authentication Bypass in parisneo/lollms-webui
- CVE-2024-1601 SQL Injection in parisneo/lollms-webui
- CVE-2024-5125 XSS and Open Redirect via SVG File Upload in parisneo/lollms-webui
- CVE-2024-1569 Uncontrolled Resource Consumption in parisneo/lollms-webui
- CVE-2024-4839 CSRF in Servers Configurations in parisneo/lollms-webui
Sources
Also known as GHSA-98jh-mf4r-8hc8.