Skip to content
Heist/ feed
Back to feed
Critical

Remote Code Execution in mintplex-labs/anything-llm

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-3104
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:18 UTC · Revision 1

Source evidence

Remote Code Execution in mintplex-labs/anything-llm

core-osv · Original source

Published 6 Jun 2024, 17:50 UTC

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.

osv:CVE-2024-3104
Complete source record
{
  "id": "e7cd7d6d1e39d7cc6fd2283a5295a7211cab48433a415dae07880e5c4a981acb",
  "url": "https://osv.dev/vulnerability/CVE-2024-3104",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Remote Code Execution in mintplex-labs/anything-llm",
    "summary": "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.",
    "evidence": "osv:CVE-2024-3104",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-3104",
      "aliases": [
        "CVE-2024-3104"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mintplex-labs/anything-llm",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "013c0b9575ae6a87af87275e326041c4e0afeeee"
                },
                {
                  "fixed": "bfedfebfab032e6f4d5a369c8a2f947c5d0c5286"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bfedfebfab032e6f4d5a369c8a2f947c5d0c5286"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3104.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.695905052Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/4f2fcb45-5828-4bec-985a-9d3a0ee00462",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3104.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-3104",
        "https://github.com/mintplex-labs/anything-llm/commit/bfedfebfab032e6f4d5a369c8a2f947c5d0c5286"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3104.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-3104",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506080,
  "published_at": "2024-06-06T17:50:18.63+00:00"
}