CVE-2024-0798 Privilege Escalation in mintplex-labs/anything-llm

High 8.1 Published Updated

Attackers with default role can delete admin-uploaded documents via improper access control checks in the API.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0798?

CVE-2024-0798 is a high-severity missing authorization vulnerability in Mintplexlabs Anythingllm, published on 25 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A privilege escalation vulnerability exists in mintplex-labs/anything-llm, allowing users with 'default' role to delete documents uploaded by 'admin'. Despite the intended restriction that prevents 'default' role users from deleting admin-uploaded documents, an attacker can exploit this vulnerability by sending a crafted DELETE request to the /api/system/remove-document endpoint. This vulnerability is due to improper access control checks, enabling unauthorized document deletion and potentially leading to loss of data integrity.

Weakness: CWE-272

Which versions are affected by CVE-2024-0798?

It affects 1 product.

Products include Mintplexlabs Anythingllm.

How do I fix CVE-2024-0798?

Apply the vendor's patch.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-0798 being exploited?

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

All Mintplexlabs Anythingllm vulnerabilities

Sources

Also known as GHSA-rg89-92m2-5hj6, MINI-pph3-gxc3-p69p.

Is CVE-2024-0798 in your software?

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

Check your SBOMs for free