9.8critical
Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui
- Severity
- 9.8critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.97% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| parisneo parisneo/lollms-webui | from unspecified before 9.5 | CVE List |
| parisneo lollms-webui | before 9.5 | CVE List |
| lollms lollms_web_ui | before 9.5 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad en las versiones parisneo/lollms-webui hasta 9.3 permite a atacantes remotos ejecutar código arbitrario. La vulnerabilidad se debe a una protección insuficiente de los endpoints `/apply_settings` y `/execute_code`. Los atacantes pueden eludir las protecciones configurando el host en localhost, habilitando la ejecución de código y deshabilitando la validación de código a través del endpoint `/apply_settings`. Posteriormente, se pueden ejecutar comandos arbitrarios de forma remota a través del endpoint `/execute_code`, aprovechando el retraso en la aplicación de la configuración. Este problema se solucionó en la versión 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-4326 changed 2024-08-01 | CVE Terms of Use |
| NVD | CVE-2024-4326 changed 2026-06-17 | Public domain |