{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d5cde8b7c27a47ab45b05b441db16751537f1733"
            }
          ],
          "repo": "https://github.com/mintplex-labs/anything-llm",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d5cde8b7c27a47ab45b05b441db16751537f1733"
            }
          ],
          "repo": "https://github.com/mintplex-labs/anything-llm",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A privilege escalation vulnerability exists in mintplex-labs/anything-llm, allowing users with 'default' role to delete documents uploaded by 'admin'. Despite the intended restriction that prevents 'default' role users from deleting admin-uploaded documents, an attacker can exploit this vulnerability by sending a crafted DELETE request to the /api/system/remove-document endpoint. This vulnerability is due to improper access control checks, enabling unauthorized document deletion and potentially leading to loss of data integrity.",
  "id": "CVE-2024-0798",
  "modified": "2026-03-13T21:48:56.414533771Z",
  "published": "2024-02-26T16:27:51.563Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/mintplex-labs/anything-llm/commit/d5cde8b7c27a47ab45b05b441db16751537f1733"
    },
    {
      "type": "EVIDENCE",
      "url": "https://huntr.com/bounties/607f03a0-ab4d-4905-b253-3d28bbbd363c"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}