CVE-2024-0798 Privilege Escalation in mintplex-labs/anything-llm
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.
Other vulnerabilities in Mintplexlabs Anythingllm
- CVE-2024-3025 Path Traversal in mintplex-labs/anything-llm
- CVE-2024-0455 SSRF on AWS deployed instances of AnythingLLM via /metadata
- CVE-2026-32626 AnythingLLM has a Streaming Phase XSS to RCE via LLM Response Injection
- CVE-2024-3104 Remote Code Execution in mintplex-labs/anything-llm
- CVE-2024-3149 SSRF in mintplex-labs/anything-llm
Sources
Also known as GHSA-rg89-92m2-5hj6, MINI-pph3-gxc3-p69p.