ZeroHour

CVE-2024-13059

PoC moderate

Path Traversal File Write to RCE in Mintplex Labs AnythingLLM

CVSS 3.0
7.2 high
EPSS
21%p97
Published
()
Modified
AI analysis

AnythingLLM prior to version 1.3.1 contains a path traversal vulnerability (CWE-22/CWE-29) caused by improper handling of non-ASCII filenames passed through the multer library, where the filename transformation can introduce '../' sequences that are never sanitized. An authenticated attacker holding a manager or admin role can submit a crafted filename to trigger a file write outside the intended upload directory. By writing files to arbitrary server locations, the attacker can escalate to remote code execution on the host running AnythingLLM. All self-hosted AnythingLLM deployments running a version before 1.3.1 are affected, and exploitation requires privileged (manager/admin) application access rather than anonymous access. There is no confirmed in-the-wild exploitation and the issue is not in CISA KEV, but a public proof-of-concept exists via the huntr bounty report and the EPSS score of 21.3% (97th percentile) indicates an elevated likelihood of exploitation within the next 30 days.

What to do: Upgrade AnythingLLM to version 1.3.1 or later to obtain the sanitized filename handling. Until upgraded, audit manager and admin accounts for unexpected privileges, review upload activity for filenames containing non-ASCII characters or '../' sequences, and check the host for files written outside the expected upload directories. Internet-facing deployments should be patched with priority given the public PoC and rising EPSS probability.

Affected
mintplexlabs anythingllmall versions prior to 1.3.1
Estimated exposure
moderatelikely tens of thousands of self-hosted installations, with roughly low thousands of internet-exposed instances (estimate; no official install counts in data) — AnythingLLM is a popular self-hosted open-source AI chat application typically deployed as a single Docker instance per organization or lab; public internet scans suggest only low thousands of exposed instances, with total deployments…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
mintplexlabs
Products
anythingllm
Weakness
CWE-29, CWE-22
Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.