CVE-2024-2356 Details
Description
A Local File Inclusion (LFI) vulnerability exists in the '/reinstall_extension' endpoint of the parisneo/lollms-webui application, specifically within the `name` parameter of the `@router.post("/reinstall_extension")` route. This vulnerability allows attackers to inject a malicious `name` parameter, leading to the server loading and executing arbitrary Python files from the upload directory for discussions. This issue arises due to the concatenation of `data.name` directly with `lollmsElfServer.lollms_paths.extensions_zoo_path` and its use as an argument for `ExtensionBuilder().build_extension()`. The server's handling of the `__init__.py` file in arbitrary locations, facilitated by `importlib.machinery.SourceFileLoader`, enables the execution of arbitrary code, such as command execution or creating a reverse-shell connection. This vulnerability affects the latest version of parisneo/lollms-webui and can lead to Remote Code Execution (RCE) when the application is exposed to an external endpoint or the UI, especially when bound to `0.0.0.0` or in `headless mode`. No user interaction is required for exploitation.
A Local File Inclusion (LFI) vulnerability has been identified in the Parisneo Lollms-Webui application, specifically within the '/reinstall_extension' endpoint. The vulnerability arises in the 'name' parameter of the '@router.post("/reinstall_extension")' route, allowing attackers to inject malicious payloads. This exploitation leads to the server executing arbitrary Python files from the upload directory associated with discussions. The issue is caused by the direct concatenation of 'data.name' with 'lollmsElfServer.lollms_paths.extensions_zoo_path', which is then used as an argument for 'ExtensionBuilder().build_extension()'. The server's handling of the '__init__.py' file in arbitrary locations, facilitated by 'importlib.machinery.SourceFileLoader', enables the execution of arbitrary code, such as command execution or creating a reverse-shell connection. This vulnerability affects the latest version of Parisneo Lollms-Webui and can lead to Remote Code Execution (RCE) when the application is exposed to an external endpoint or the UI, especially when bound to '0.0.0.0' or in 'headless mode'. No user interaction is required for exploitation.
The vulnerability has been fixed in version 9.5 of the Parisneo Lollms-Webui application. Users should update to this version to address the issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 2, 2026CISA-ADP
Assessed Feb 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25 | [email protected] | Source CodeVendor |
| https://huntr.com/bounties/cb9867b4-28e3-4406-9031-f66fc28553d4 | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-29 | Path Traversal: '\..\filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| parisneo/lollms-webui | <= 9.5 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 2, 2026 | New CVE Received | [email protected] |
Volerion