CVE-2024-4326: Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui
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 /applysettings and /executecode endpoints. Attackers can bypass protections by setting the host to localhost, enabling code execution, and disabling code validation through the /applysettings endpoint. Subsequently, arbitrary commands can be executed remotely via the /executecode endpoint, exploiting the delay in settings enforcement. This issue was addressed in version 9.5.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
parisneo/lollms-webuito a version that resolves this vulnerability.Fixed in 9.5
Event History
Frequently Asked Questions
What is the severity of CVE-2024-4326?
CVE-2024-4326 is considered a high severity vulnerability allowing remote code execution.
How do I fix CVE-2024-4326?
To fix CVE-2024-4326, upgrade the lollms-webui to version 9.5 or later.
What are the affected versions of CVE-2024-4326?
CVE-2024-4326 affects parisneo/lollms-webui versions up to and including 9.3.
What endpoints are vulnerable in CVE-2024-4326?
CVE-2024-4326 exploits insufficient protection on the /apply_settings and /execute_code endpoints.
Can attackers exploit CVE-2024-4326 remotely?
Yes, CVE-2024-4326 allows remote attackers to execute arbitrary code.