CVE-2024-13059
PoC moderatePath Traversal File Write to RCE in Mintplex Labs AnythingLLM
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.
| mintplexlabs anythingllm | all versions prior to 1.3.1 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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 news0 stories
No ingested article mentions this CVE yet.