AnythingLLMPublished 10 Feb 2025NVD status: Analyzed

CVE-2024-13059

AnythingLLM: 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.

ComponentAnythingLLM
Severityhigh (CVSS 7.2)
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2025-02-10
Last modified2026-06-17
Affected versions
< 1.3.1
from the CVE Program record written by the CNA that assigned the CVE
Fixed in1.3.1
WeaknessCWE-29CWE-22
CISA KEVnot listed

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

What to do

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

Sources