CVE-2026-121585
InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulDBAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| RAGFlow InfiniFlow |
0.27.0 (affected) 0.27.1 (affected) 0.27.2 (affected) 1.0.0-rc1 (affected) 1.0.0-rc2 (affected) |
CNA: VulDB |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 5.3 medium |
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 | CNA: VulDB |
| 3.1 / 4.3 medium |
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 | CNA: VulDB |
| 3.0 / 4.3 medium |
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 | CNA: VulDB |
| 2.0 / 4.0 medium |
AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C | CNA: VulDB |
Exploit evidence
- https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read
exploit · CNA: VulDB
References
- https://vuldb.com/vuln/430429CNA: VulDB · vdb-entry, technical-description
- https://vuldb.com/vuln/430429/ctiCNA: VulDB · signature, permissions-required
- https://vuldb.com/cve/CVE-2026-121585CNA: VulDB · third-party-advisory
- https://vuldb.com/submit/1020561CNA: VulDB · third-party-advisory
- https://github.com/infiniflow/ragflow/issues/15123CNA: VulDB · broken-link, issue-tracking
- https://github.com/infiniflow/ragflow/pull/15124CNA: VulDB · issue-tracking, patch
- https://github.com/ZSH402/RAGFlow-Cross-Tenant-ReadCNA: VulDB · exploit
- https://github.com/infiniflow/ragflow/CNA: VulDB · product
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.