AnythingLLMPublished 19 Jan 2024NVD status: Modified

CVE-2024-22422

AnythingLLM is an application that turns any document, resource, or piece of content into context that any LLM can use as references during chatting.

ComponentAnythingLLM
Severityhigh (CVSS 7.5)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published (NVD)2024-01-19
Last modified2026-06-17
Affected versions
< 1.0.0
NVD gives the date of the fix (2024-01-18) instead of a release; the first release, 1.0.0, came later, so every release carries it
Fixed in1.0.0
WeaknessCWE-754
CISA KEVnot listed

Versions, checked against NVD

These are NVD's ranges, corrected where its own description says otherwise. Neither a GitHub-reviewed advisory nor the CVE record gives versions to check them against yet.

NVD 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.

What to do

  • Upgrade AnythingLLM to 1.0.0 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources