7.2high
Path Traversal in mintplex-labs/anything-llm
- Severity
- 7.2high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 24.1% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
A vulnerability in mintplex-labs/anything-llm prior to version 1.3.1 allows for path traversal due to improper handling of non-ASCII filenames in the multer library. This vulnerability can lead to arbitrary file write, which can subsequently result in remote code execution. The issue arises when the filename transformation introduces '../' sequences, which are not sanitized by multer, allowing attackers with manager or admin roles to write files to arbitrary locations on the server.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mintplex-labs mintplex-labs/anything-llm | from unspecified before 1.3.1 | CVE List |
| mintplexlabs anythingllm | before 1.3.1 | NVD |
Classification
What each source says
CVE List
A vulnerability in mintplex-labs/anything-llm prior to version 1.3.1 allows for path traversal due to improper handling of non-ASCII filenames in the multer library. This vulnerability can lead to arbitrary file write, which can subsequently result in remote code execution. The issue arises when the filename transformation introduces '../' sequences, which are not sanitized by multer, allowing attackers with manager or admin roles to write files to arbitrary locations on the server.
NVD (es)
Una vulnerabilidad en mintplex-labs/anything-llm anterior a la versión 1.3.1 permite path traversal debido a la gestión inadecuada de nombres de archivos que no son ASCII en la librería multer. Esta vulnerabilidad puede provocar escrituras arbitrarias en archivos, lo que posteriormente puede provocar la ejecución remota de código. El problema surge cuando la transformación de nombres de archivos introduce secuencias '../', que no son depuradas por multer, lo que permite a los atacantes con roles de administrador o gerente escribir archivos en ubicaciones arbitrarias en el servidor.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-13059 changed 2025-02-10 | CVE Terms of Use |
| NVD | CVE-2024-13059 changed 2026-06-17 | Public domain |