CVE-2024-22422 Unauthenticated Denial of Service (DOS) attack in AnythingLLM

High 7.5 Published Updated

Unauthenticated attackers can crash the AnythingLLM server by exploiting a lack of error handling in the file export endpoint.

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

What is CVE-2024-22422?

CVE-2024-22422 is a high-severity denial of service vulnerability in Mintplexlabs Anythingllm, published on 19 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

AnythingLLM is an application that turns any document, resource, or piece of content into context that any LLM can use as references during chatting. In versions prior to commit `08d33cfd8` an unauthenticated API route (file export) can allow attacker to crash the server resulting in a denial of service attack. The “data-export” endpoint is used to export files using the filename parameter as user input. The endpoint takes the user input, filters it to avoid directory traversal attacks, fetches the file from the server, and afterwards deletes it. An attacker can trick the input filter mechanism to point to the current directory, and while attempting to delete it the server will crash as there is no error-handling wrapper around it. Moreover, the endpoint is public and does not require any form of authentication, resulting in an unauthenticated Denial of Service issue, which crashes the instance using a single HTTP packet. This issue has been addressed in commit `08d33cfd8`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-754

Which versions are affected by CVE-2024-22422?

It affects 1 product.

Products include Mintplexlabs Anythingllm.

How do I fix CVE-2024-22422?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-22422 being exploited?

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

All Mintplexlabs Anythingllm vulnerabilities

Sources

Also known as GHSA-xmj6-g32r-fc5q, MINI-4xrx-9257-jwr8.

Is CVE-2024-22422 in your software?

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

Check your SBOMs for free