CVE-2024-4320

Public Exploit
Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui

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.

Categories

9.8
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 3.0 •
EPSS 23.18% Top 5%
Third-Party Advisory huntr.com
Affected: parisneo parisneo/lollms-webui
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-4320?
CVE-2024-4320 has been scored as a critical severity vulnerability.
How to fix CVE-2024-4320?
To fix CVE-2024-4320, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-4320 being actively exploited in the wild?
It is possible that CVE-2024-4320 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~23% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-4320?
CVE-2024-4320 affects parisneo parisneo/lollms-webui.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.