{"id":"CVE-2026-121585","state":"PUBLISHED","title":"InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization","description":"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.","publishedAt":"2026-11-03T23:30:17.239Z","updatedAt":"2026-11-07T03:39:25.578Z","severity":{"score":5.3,"label":"Medium","version":"4.0","vector":"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","source":"VulDB"},"assigner":"VulDB","products":["InfiniFlow RAGFlow"],"affected":[{"vendor":"InfiniFlow","product":"RAGFlow","versions":[{"version":"0.27.0","status":"affected"},{"version":"0.27.1","status":"affected"},{"version":"0.27.2","status":"affected"},{"version":"1.0.0-rc1","status":"affected"},{"version":"1.0.0-rc2","status":"affected"}],"cpes":["cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*"],"modules":["Text To SQL Retrieval"]}],"references":["https://vuldb.com/vuln/430429","https://vuldb.com/vuln/430429/cti","https://vuldb.com/cve/CVE-2026-121585","https://vuldb.com/submit/1020561","https://github.com/infiniflow/ragflow/issues/15123","https://github.com/infiniflow/ragflow/pull/15124","https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read","https://github.com/infiniflow/ragflow/"],"weaknesses":["CWE-639","CWE-285"],"ingestedAt":"2026-11-07T03:44:05.813Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/121xxx/CVE-2026-121585.json","commit":"031d25c3aed64366a91caee8e34e32d53a2a686f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-121585","state":"PUBLISHED","datePublished":"2026-11-03T23:30:17.239Z","dateUpdated":"2026-11-07T03:39:25.578Z","assignerShortName":"VulDB","assignerOrgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateReserved":"2026-11-03T15:57:18.140Z"},"containers":{"cna":{"title":"InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"InfiniFlow","product":"RAGFlow","versions":[{"version":"0.27.0","status":"affected"},{"version":"0.27.1","status":"affected"},{"version":"0.27.2","status":"affected"},{"version":"1.0.0-rc1","status":"affected"},{"version":"1.0.0-rc2","status":"affected"}],"cpes":["cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*"],"modules":["Text To SQL Retrieval"]}],"references":[{"url":"https://vuldb.com/vuln/430429","name":"VDB-430429 | InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/430429/cti","name":"VDB-430429 | CTI Indicators (IOB, IOC, IOA)","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/cve/CVE-2026-121585","name":"CVE-2026-121585 | CVE Analysis and Report","tags":["third-party-advisory"]},{"url":"https://vuldb.com/submit/1020561","name":"Submit #1020561 | InfiniFlow RAGFlow 1.0.0-rc1 Authorization Bypass","tags":["third-party-advisory"]},{"url":"https://github.com/infiniflow/ragflow/issues/15123","tags":["broken-link","issue-tracking"]},{"url":"https://github.com/infiniflow/ragflow/pull/15124","tags":["issue-tracking","patch"]},{"url":"https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read","tags":["exploit"]},{"url":"https://github.com/infiniflow/ragflow/","tags":["product"]}],"metrics":[{"cvssV4_0":{"version":"4.0","baseScore":5.3,"vectorString":"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","baseSeverity":"MEDIUM"}},{"cvssV3_1":{"version":"3.1","baseScore":4.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C","baseSeverity":"MEDIUM"}},{"cvssV3_0":{"version":"3.0","baseScore":4.3,"vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C","baseSeverity":"MEDIUM"}},{"cvssV2_0":{"version":"2.0","baseScore":4,"vectorString":"AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-639","type":"CWE","lang":"en","description":"Authorization Bypass"}]},{"descriptions":[{"cweId":"CWE-285","type":"CWE","lang":"en","description":"Improper Authorization"}]}],"providerMetadata":{"shortName":"VulDB","orgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateUpdated":"2026-11-03T23:30:17.239Z"},"timeline":[{"time":"2026-11-03T00:00:00.000Z","lang":"en","value":"Advisory disclosed"},{"time":"2026-11-03T01:00:00.000Z","lang":"en","value":"VulDB entry created"},{"time":"2026-11-03T17:02:24.000Z","lang":"en","value":"VulDB entry last update"}],"credits":[{"lang":"en","value":"zsh07 (VulDB User)","type":"reporter"}],"x_generator":["VulDB PVTS v202611"]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-07T03:39:11.146517Z","id":"CVE-2026-121585","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-07T03:39:25.578Z"}}]}}}