CVE-2024-1520 OS Command Injection in parisneo/lollms-webui

Critical 9.8 Published Updated

Attackers can execute arbitrary OS commands via the open_code_folder endpoint in lollms-webui, leading to system compromise.

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-1520?

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

Official description

An OS Command Injection vulnerability exists in the '/open_code_folder' endpoint of the parisneo/lollms-webui application, due to improper validation of user-supplied input in the 'discussion_id' parameter. Attackers can exploit this vulnerability by injecting malicious OS commands, leading to unauthorized command execution on the underlying operating system. This could result in unauthorized access, data leakage, or complete system compromise.

Weakness: CWE-78

Which versions are affected by CVE-2024-1520?

It affects 1 product.

Products include Lollms Lollms Web Ui.

How do I fix CVE-2024-1520?

No fix has been published for CVE-2024-1520 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-1520 being exploited?

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

Sources

Also known as GHSA-8wv4-58g4-2v58.

Is CVE-2024-1520 in your software?

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

Check your SBOMs for free