CVE-2026-121585

InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization

Published Nov 3, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade RAGFlow to any version newer than 0.27.2 or 1.0.0‑rc2 where the RunSQL argument validation has been corrected
  • Restrict access to the RunSQL endpoint by enforcing strong authentication and role‑based access controls
  • Add input validation or a whitelist for tableName and kbIDs arguments to ensure only allowed values are processed
  • Monitor application logs for unauthorized SQL execution attempts

Generated by OpenCVE AI on November 4, 2026 at 08:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization
First Time appeared Infiniflow
Infiniflow ragflow
Weaknesses CWE-285
CWE-639
CPEs cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*
Vendors & Products Infiniflow
Infiniflow ragflow
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': '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'}

cvssV3_1

{'score': 4.3, 'vector': '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'}

cvssV4_0

{'score': 5.3, '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'}

Weaknesses
  • CWE-285

    Improper Authorization

  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 7, 2026, 3:39 AM
Reserved
Nov 3, 2026, 3:57 PM
Status
Deferred
Published
Nov 4, 2026, 12:17 AM
Modified
Nov 7, 2026, 4:17 AM