Critical severity · published Jun 6, 2024
CVE-2024-4320
Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui
9.8
CVSS
34.4%
EPSS
No
On KEV
Description
A remote code execution (RCE) vulnerability exists in the '/install_extension' endpoint of the parisneo/lollms-webui application, specifically within the `@router.post("/install_extension")` route handler. The vulnerability arises due to improper handling of the `name` parameter in the `ExtensionBuilder().build_extension()` method, which allows for local file inclusion (LFI) leading to arbitrary code execution. An attacker can exploit this vulnerability by crafting a malicious `name` parameter that causes the server to load and execute a `__init__.py` file from an arbitrary location, such as the upload directory for discussions. This vulnerability affects the latest version of parisneo/lollms-webui and can lead to remote code execution without requiring user interaction, especially when the application is exposed to an external endpoint or operated in headless mode.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)34.4% · higher than 98% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PA
parisneo/lollms-webui · parisneo
through latest · source: vendor
LW
Lollms Web UI · Lollms
All versions, or not specified · source: NVD
LO
Lollms · Parisneo
0 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-4320
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-4320
Exploit
https://huntr.com/bounties/d6564f04-0f59-4686-beb2-11659342279b
More from parisneo/lollms-webui
9.8
CVE-2024-8898
Path Traversal in parisneo/lollms-webui
9.8
CVE-2024-2359
Improper Neutralization of Special Elements used in an OS Command in parisneo/lollms-webui
9.8
CVE-2024-2360
Path Traversal leading to Remote Code Execution in parisneo/lollms-webui
9.8
CVE-2024-3322
Path Traversal in parisneo/lollms-webui
9.8
CVE-2024-2624
Path Traversal and Arbitrary File Upload Vulnerability in parisneo/lollms-webui
