# CVE-2024-4326: Remote Code Execution via `/apply_settings` and `/execute_code` 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): 0.97%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-16T09:03:47.208Z
- Modified: 2026-06-17T08:01:40.687Z
- Weaknesses: CWE-15
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## Description

A vulnerability in parisneo/lollms-webui versions up to 9.3 allows remote attackers to execute arbitrary code. The vulnerability stems from insufficient protection of the `/apply_settings` and `/execute_code` endpoints. Attackers can bypass protections by setting the host to localhost, enabling code execution, and disabling code validation through the `/apply_settings` endpoint. Subsequently, arbitrary commands can be executed remotely via the `/execute_code` endpoint, exploiting the delay in settings enforcement. This issue was addressed in version 9.5.

(As written by CVE List.)

## Affected

- parisneo parisneo/lollms-webui: from unspecified before 9.5
- parisneo lollms-webui: before 9.5
- lollms lollms_web_ui: before 9.5

## References

- <https://huntr.com/bounties/2ab9f03d-0538-4317-be21-0748a079cbdd> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e> (patch)

## Sources

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

---

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