{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-2356","id":"CVE-2024-2356","title":"Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui","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 di","descriptionLong":"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.","published":"2026-02-02T10:36:23.820Z","updated":"2026-10-28T02:30:46.810711275Z","reserved":"2024-03-09T21:38:45.783Z","status":"Deferred","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.0","score":9.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"@huntr_ai"},"metrics":[{"version":"3.0","score":9.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"@huntr_ai"},{"version":"3.0","score":9.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"huntr.dev"},{"version":"3.0","score":9.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["parisneo/lollms-webui"],"affectedProducts":[{"vendor":"parisneo","product":"parisneo/lollms-webui","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"v9.5","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-29"],"aliases":[],"references":[{"url":"https://huntr.com/bounties/cb9867b4-28e3-4406-9031-f66fc28553d4","tags":["web"]},{"url":"https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25","tags":["fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2356.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2356","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00885,"epssPercentile":0.59983,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-2356","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2356","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-2356","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-2356","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}