{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.27.0"
                  },
                  {
                    "last_affected": "0.27.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.27.1"
                  },
                  {
                    "last_affected": "0.27.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.27.2"
                  },
                  {
                    "last_affected": "0.27.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.0.0-rc1"
                  },
                  {
                    "last_affected": "1.0.0-rc1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.0.0-rc2"
                  },
                  {
                    "last_affected": "1.0.0-rc2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.27.2"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "ec9c08d809f63ba2815090182fa225899d2437d5"
            },
            {
              "last_affected": "ac29b4b29928ca65d3efca19b6cfae3f86069b81"
            }
          ],
          "repo": "https://github.com/infiniflow/ragflow",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.27.0",
        "0.27.1",
        "0.27.2",
        "1.0.0-rc1",
        "1.0.0-rc2"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-285",
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121585.json"
  },
  "details": "A security flaw has been discovered in InfiniFlow RAGFlow up to 0.27.2/1.0.0-rc2. This impacts the function RunSQL of the file internal/engine/infinity/sql.go of the component Text To SQL Retrieval. The manipulation of the argument tableName/kbIDs results in authorization bypass. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks.",
  "id": "CVE-2026-121585",
  "modified": "2026-11-08T02:30:34.966106819Z",
  "published": "2026-11-03T23:30:17.239Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/infiniflow/ragflow/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121585.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-121585"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-121585"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1020561"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/430429"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/infiniflow/ragflow/issues/15123"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/430429/cti"
    },
    {
      "type": "FIX",
      "url": "https://github.com/infiniflow/ragflow/pull/15124"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization"
}