CVE-2024-13059
JSON

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 packageVersionsReported by
mintplex-labs mintplex-labs/anything-llmfrom unspecified before 1.3.1CVE List
mintplexlabs anythingllmbefore 1.3.1NVD

Classification

CWE-22CWE-29

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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

SourceRecordLicence
CVE ListCVE-2024-13059 changed 2025-02-10CVE Terms of Use
NVDCVE-2024-13059 changed 2026-06-17Public domain