A remote code execution vulnerability exists in the parisneo/lollms-webui application, specifically within the reinstall_binding functionality in lollms_core/lollms/server/endpoints/lollms_binding_infos.py of the latest version. The vulnerability arises due to insufficient path sanitization, allowing an attacker to exploit path traversal to navigate to arbitrary directories. By manipulating the binding_path to point to a controlled directory and uploading a malicious init.py file, an attacker can execute arbitrary code on the server.
{
"cna_assigner": "@huntr_ai",
"cwe_ids": [
"CWE-77"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2366.json"
}{
"cpe": "cpe:2.3:a:lollms:lollms_web_ui:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "9.5"
}
],
"source": "CPE_RANGE"
}