# CVE-2024-4320: Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 34.4%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T18:22:40.768Z
- Modified: 2026-06-17T08:01:40.013Z
- Weaknesses: CWE-22, CWE-29
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- parisneo parisneo/lollms-webui: from unspecified up to latest
- parisneo lollms: before *
- lollms lollms_web_ui: no versions given

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/d6564f04-0f59-4686-beb2-11659342279b> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2024-4320](https://www.cve.org/CVERecord?id=CVE-2024-4320), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-4320](https://nvd.nist.gov/vuln/detail/CVE-2024-4320), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-4320 · Whole record: https://cve.day/CVE-2024-4320.json · Rebuilt by cve.day 2026-11-25T22:58:41.514Z
