CVE-2024-1601 SQL Injection in parisneo/lollms-webui

High 7.5 Published Updated

An attacker can delete all discussion and message data via SQL injection in the delete_discussion endpoint of lollms-webui.

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

CVE-2024-1601 is a high-severity SQL injection vulnerability in parisneo/lollms-webui, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An SQL injection vulnerability exists in the `delete_discussion()` function of the parisneo/lollms-webui application, allowing an attacker to delete all discussions and message data. The vulnerability is exploitable via a crafted HTTP POST request to the `/delete_discussion` endpoint, which internally calls the vulnerable `delete_discussion()` function. By sending a specially crafted payload in the 'id' parameter, an attacker can manipulate SQL queries to delete all records from the 'discussion' and 'message' tables. This issue is due to improper neutralization of special elements used in an SQL command.

Weakness: CWE-89

Which versions are affected by CVE-2024-1601?

It affects 1 product.

Products include Lollms Lollms-Webui.

How do I fix CVE-2024-1601?

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

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-1601 being exploited?

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

Sources

Also known as GHSA-v84m-cf86-322v.

Is CVE-2024-1601 in your software?

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

Check your SBOMs for free