{"id":"CVE-2026-121585","summary":"InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization","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.","modified":"2026-11-08T02:30:34.966106819Z","published":"2026-11-03T23:30:17.239Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121585.json","cna_assigner":"VulDB","cwe_ids":["CWE-285","CWE-639"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/infiniflow/ragflow","events":[{"introduced":"ec9c08d809f63ba2815090182fa225899d2437d5"},{"last_affected":"ac29b4b29928ca65d3efca19b6cfae3f86069b81"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"0.27.0"},{"last_affected":"0.27.0"}]},{"range":[{"introduced":"0.27.1"},{"last_affected":"0.27.1"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"0.27.2"},{"last_affected":"0.27.2"}]},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.0.0-rc1"},{"last_affected":"1.0.0-rc1"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.0.0-rc2"},{"last_affected":"1.0.0-rc2"}]},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"last_affected":"0.27.2"}]}]}}],"versions":["0.27.0","0.27.1","0.27.2","1.0.0-rc1","1.0.0-rc2","v1.0.0-rc2","dev-20261016","dev-20261015","dev-20261014","dev-20261013","dev-20261010","v1.0.0-rc1","dev-1.0.0","dev-20260928","dev-20260924","dev-20260921","dev-20260918","dev-20260917","dev-20260916","dev-20260914","v0.27.2","dev-20260908","dev-20260904","dev-20260903","dev-20260902","dev-20260901","dev-20260831","v0.27.1","dev-20260827","dev-20260826","dev-20260825","dev-20260824","dev-20260821","dev-20260820","v0.27.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-121585.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}