9.6critical
Arbitrary Upload & Read via Path Traversal in parisneo/lollms-webui
- Severity
- 9.6critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
A vulnerability in the parisneo/lollms-webui allows for arbitrary file upload and read due to insufficient sanitization of user-supplied input. Specifically, the issue resides in the `install_model()` function within `lollms_core/lollms/binding.py`, where the application fails to properly sanitize the `file://` protocol and other inputs, leading to arbitrary read and upload capabilities. Attackers can exploit this vulnerability by manipulating the `path` and `variant_name` parameters to achieve path traversal, allowing for the reading of arbitrary files and uploading files to arbitrary locations on the server. This vulnerability affects the latest version of parisneo/lollms-webui.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| parisneo parisneo/lollms-webui | from unspecified up to latest | CVE List |
| parisneo lollms-webui | * | 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 the parisneo/lollms-webui allows for arbitrary file upload and read due to insufficient sanitization of user-supplied input. Specifically, the issue resides in the `install_model()` function within `lollms_core/lollms/binding.py`, where the application fails to properly sanitize the `file://` protocol and other inputs, leading to arbitrary read and upload capabilities. Attackers can exploit this vulnerability by manipulating the `path` and `variant_name` parameters to achieve path traversal, allowing for the reading of arbitrary files and uploading files to arbitrary locations on the server. This vulnerability affects the latest version of parisneo/lollms-webui.
NVD (es)
Una vulnerabilidad en parisneo/lollms-webui permite la carga y lectura de archivos arbitrarios debido a una desinfección insuficiente de la entrada proporcionada por el usuario. Específicamente, el problema reside en la función `install_model()` dentro de `lollms_core/lollms/binding.py`, donde la aplicación no puede limpiar correctamente el protocolo `file://` y otras entradas, lo que genera capacidades de carga y lectura arbitrarias. Los atacantes pueden explotar esta vulnerabilidad manipulando los parámetros `path` y `variant_name` para lograr path traversal, lo que permite la lectura de archivos arbitrarios y la carga de archivos a ubicaciones arbitrarias en el servidor. Esta vulnerabilidad afecta a la última versión de parisneo/lollms-webui.
References
| https://huntr.com/bounties/cd383817-924a-445a-838e-d0c867c6a176 | exploit, issue-tracking, patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-2361 changed 2024-08-01 | CVE Terms of Use |
| NVD | CVE-2024-2361 changed 2026-06-17 | Public domain |