{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.24.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "392ec99651da78f6a8e1a2f60fe4818a95a8651d"
            }
          ],
          "repo": "https://github.com/infiniflow/ragflow",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-vvwj-fvwh-4whx"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336",
      "CWE-20",
      "CWE-78",
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28797.json"
  },
  "details": "RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-Side Template Injection (SSTI) vulnerability exists in RAGFlow's Agent workflow Text Processing (StringTransform) and Message components. These components use Python's jinja2.Template (unsandboxed) to render user-supplied templates, allowing any authenticated user to execute arbitrary operating system commands on the server. At time of publication, there are no publicly available patches.",
  "id": "CVE-2026-28797",
  "modified": "2026-07-15T01:49:01.045503834Z",
  "published": "2026-04-03T21:41:54.291Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28797.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/infiniflow/ragflow/security/advisories/GHSA-vvwj-fvwh-4whx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28797"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "RAGFlow: Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in Agent \"Text Processing\" Component"
}