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

Configuration 1 (hide)

cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:*

History

21 Nov 2024, 08:56

Type Values Removed Values Added
References () https://github.com/Mintplex-Labs/anything-llm/commit/08d33cfd8fc47c5052b6ea29597c964a9da641e2 - Patch () https://github.com/Mintplex-Labs/anything-llm/commit/08d33cfd8fc47c5052b6ea29597c964a9da641e2 - Patch
References () https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-xmj6-g32r-fc5q - Exploit, Mitigation, Vendor Advisory () https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-xmj6-g32r-fc5q - Exploit, Mitigation, Vendor Advisory

25 Jan 2024, 22:19

Type Values Removed Values Added
CPE cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:*
First Time Mintplexlabs anythingllm
Mintplexlabs
References () https://github.com/Mintplex-Labs/anything-llm/commit/08d33cfd8fc47c5052b6ea29597c964a9da641e2 - () https://github.com/Mintplex-Labs/anything-llm/commit/08d33cfd8fc47c5052b6ea29597c964a9da641e2 - Patch
References () https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-xmj6-g32r-fc5q - () https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-xmj6-g32r-fc5q - Exploit, Mitigation, Vendor Advisory
Summary
  • (es) AnythingLLM es una aplicación que convierte cualquier documento, recurso o contenido en contexto que cualquier LLM puede usar como referencia durante el chat. En versiones anteriores a el commit `08d33cfd8`, una ruta API no autenticada (exportación de archivos) puede permitir que un atacante bloquee el servidor, lo que resulta en un ataque de denegación de servicio. El endpoint de "exportación de datos" se utiliza para exportar archivos utilizando el parámetro de nombre de archivo como entrada del usuario. El endpoint toma la entrada del usuario, la filtra para evitar ataques de directory traversal, recupera el archivo del servidor y luego lo elimina. Un atacante puede engañar al mecanismo de filtro de entrada para que apunte al directorio actual y, al intentar eliminarlo, el servidor fallará porque no hay ningún contenedor de manejo de errores a su alrededor. Además, el endpoint es público y no requiere ningún tipo de autenticación, lo que genera un problema de denegación de servicio no autenticado, que bloquea la instancia mediante un único paquete HTTP. Este problema se solucionó en el commit "08d33cfd8". Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.

19 Jan 2024, 01:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-01-19 01:15

Updated : 2026-06-17 07:11


NVD link : CVE-2024-22422

Mitre link : CVE-2024-22422

CVE.ORG link : CVE-2024-22422


JSON object : View

Products Affected

mintplexlabs

  • anythingllm
CWE
CWE-754

Improper Check for Unusual or Exceptional Conditions