RCE in Mintplex-Labs Mintplex-Labs/anything-Llm

CVE-2024-3104

A remote code execution vulnerability exists in mintplex-labs/anything-llm due to improper handling of environment variables. Attackers can exploit this vulnerability by injecting arbitrary environment variables via the `POST /api/system/update-env` endpoint, which allows for the execution of arbitrary code on the host running anything-llm. The vulnerability is present in the latest version of anything-llm, with the latest commit identified as fde905aac1812b84066ff72e5f2f90b56d4c3a59. This issue has been fixed in version 1.0.0. Successful exploitation could lead to code execution on the host, enabling attackers to read and modify data accessible to the user running the service, potentially leading to a denial of service.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.010 (60.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-3104?
CVE-2024-3104 is a critical-severity vulnerability in Mintplex-Labs Mintplex-Labs/anything-Llm, classified under OS Command Injection. CVSS score: 9.8/10. Published 2024-06-06.
How severe is CVE-2024-3104?
Critical severity. CVSS v3 base score is 9.8 out of 10.