CVE-2024-2359 Improper Neutralization of Special Elements used in an OS Command in parisneo/lollms-webui

Critical 9.8 Published Updated

Attackers can bypass access restrictions via an unsecured settings endpoint to enable remote code execution on the Lollms Web UI server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-2359?

CVE-2024-2359 is a critical command injection vulnerability in parisneo/lollms-webui, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability in the parisneo/lollms-webui version 9.3 allows attackers to bypass intended access restrictions and execute arbitrary code. The issue arises from the application's handling of the `/execute_code` endpoint, which is intended to be blocked from external access by default. However, attackers can exploit the `/update_setting` endpoint, which lacks proper access control, to modify the `host` configuration at runtime. By changing the `host` setting to an attacker-controlled value, the restriction on the `/execute_code` endpoint can be bypassed, leading to remote code execution. This vulnerability is due to improper neutralization of special elements used in an OS command (`Improper Neutralization of Special Elements used in an OS Command`).

Weakness: CWE-78

Which versions are affected by CVE-2024-2359?

It affects 1 product.

Products include Lollms Lollms Web Ui.

How do I fix CVE-2024-2359?

No fix has been published for CVE-2024-2359 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-2359 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-2359 exists.

Sources

Also known as GHSA-jhmr-hfhr-vhq6.

Is CVE-2024-2359 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free