Technical impact
The flaw resides in the RunSQL function of the Text To SQL Retrieval component of InfiniFlow RAGFlow versions up to 0.27.2 or 1.0.0‑rc2. By manipulating the tableName and kbIDs parameters, a remote actor can bypass the intended authorization checks and execute arbitrary SQL statements. This results in an authorization bypass (CWE‑285) coupled with an improper reliance on a selection list (CWE‑639), enabling the attacker to read or alter protected data.
Affected Systems
All deployments of InfiniFlow RAGFlow running version 0.27.0 through 0.27.2 or the 1.0.0‑rc2 release candidate are vulnerable. Systems that have not applied a newer release are susceptible unless mitigated by other controls.
Risk and Exploitability
The CVSS base score of 5.3 indicates a moderate severity. EPSS information is not available, but the exploit has been publicly released and can be performed remotely via the exposed RunSQL endpoint. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it by sending crafted HTTP requests that include malicious tableName or kbIDs values, provoking the bypassed authorization logic and allowing the execution of arbitrary SQL operations on the backend database.