{"id":"CVE-2024-2356","published":"2026-02-02T10:36:23Z","modified":"2026-02-02T17:43:35Z","title":"Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui","vendor":"parisneo","product":"parisneo/lollms-webui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00885,"percentile":0.60106,"provenance":"source"},"cwes":[{"id":"CWE-29","name":"Path Traversal: '..filename'"}],"references":[{"url":"https://huntr.com/bounties/cb9867b4-28e3-4406-9031-f66fc28553d4","tags":[]},{"url":"https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25","tags":[]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":12.02},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms-webui","versions":[">= unspecified, < v9.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-02-02T17:43:26.235436Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-27309","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parisneo-lollms-webui-cve-2024-1522","parents":[{"from":"CVE-2024-1522","to":"CVE-2024-2356","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/lollms_advanced.py"],"commits":["https://github.com/parisneo/lollms-webui/commit/0b51063119cfb5e391925d232a4af1de9dc32e2b","https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25"],"basis":"shared function","functions":["execute_code"]}]},{"from":"CVE-2024-1646","to":"CVE-2024-2356","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/chat_bar.py","endpoints/lollms_message.py","events/lollms_chatbox_events.py","events/lollms_discussion_events.py","events/lollms_generation_events.py"],"commits":["https://github.com/parisneo/lollms-webui/commit/02e829b5653a1aa5dbbe9413ec84f96caa1274e8","https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25"],"basis":"shared function","functions":["message_rank_up"]}]},{"from":"CVE-2024-1873","to":"CVE-2024-2356","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/chat_bar.py","endpoints/lollms_message.py","events/lollms_chatbox_events.py","events/lollms_discussion_events.py","events/lollms_generation_events.py"],"commits":["https://github.com/parisneo/lollms-webui/commit/02e829b5653a1aa5dbbe9413ec84f96caa1274e8","https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25"],"basis":"shared function","functions":["message_rank_up"]}]}]}}