CVE-2024-2356
published critical CVSS 3.0 · 9.6Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| parisneo | — | parisneo/lollms-webuiunspecified to < v9.5 | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.6 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| parisneo | parisneo/lollms-webui | unspecified to < v9.5 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-29 CWE-29 Path Traversal: '\..\filename'
References
2Provider assertions
2@huntr_ai · cna
Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e6a634b4c63b213fd2a88349c683461d0db46aa973957ea47874832ae1bdddb5
- Ingested
- 23 Sep 2026, 08:21:43 UTC
- Source record
- Official CVE record