# CVE-2024-3104: Remote Code Execution in mintplex-labs/anything-llm

- Severity: Critical 9.6 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T17:50:18.630Z
- Modified: 2026-06-17T07:43:19.113Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- mintplex-labs mintplex-labs/anything-llm: from unspecified before 1.0.0
- mintplexlabs anythingllm: before 1.0.0

## Every score

- @huntr_ai: CVSS:3.0 9.6 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/4f2fcb45-5828-4bec-985a-9d3a0ee00462> (exploit, third-party-advisory)
- <https://github.com/mintplex-labs/anything-llm/commit/bfedfebfab032e6f4d5a369c8a2f947c5d0c5286> (patch)

## Sources

- CVE List: [CVE-2024-3104](https://www.cve.org/CVERecord?id=CVE-2024-3104), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-3104](https://nvd.nist.gov/vuln/detail/CVE-2024-3104), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-3104 · Whole record: https://cve.day/CVE-2024-3104.json · Rebuilt by cve.day 2026-11-25T22:58:41.489Z
