# CVE-2026-121585: InfiniFlow RAGFlow Text To SQL Retrieval sql.go RunSQL authorization

Status: published. Published: 2026-11-03. Updated: 2026-11-03.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/infiniflow/ragflow/pull/15124

## Affected products and versions

- InfiniFlow / RAGFlow: 0.27.0 (affected); 0.27.1 (affected); 0.27.2 (affected); 1.0.0-rc1 (affected); 1.0.0-rc2 (affected). Source: CNA: VulDB

## Severity and prioritization

- CVSS 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; source: CNA: VulDB

- CVSS 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; source: CNA: VulDB

- CVSS 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; source: CNA: VulDB

- CVSS 2.0: 4 (medium); AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C; source: CNA: VulDB

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-639, CWE-285

## Exploit evidence

- exploit: https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read (CNA: VulDB)

## References

- https://vuldb.com/vuln/430429 (CNA: VulDB; vdb-entry, technical-description)

- https://vuldb.com/vuln/430429/cti (CNA: VulDB; signature, permissions-required)

- https://vuldb.com/cve/CVE-2026-121585 (CNA: VulDB; third-party-advisory)

- https://vuldb.com/submit/1020561 (CNA: VulDB; third-party-advisory)

- https://github.com/infiniflow/ragflow/issues/15123 (CNA: VulDB; broken-link, issue-tracking)

- https://github.com/infiniflow/ragflow/pull/15124 (CNA: VulDB; issue-tracking, patch)

- https://github.com/ZSH402/RAGFlow-Cross-Tenant-Read (CNA: VulDB; exploit)

- https://github.com/infiniflow/ragflow/ (CNA: VulDB; product)

## Provenance

- CNA: VulDB: https://www.cve.org/CVERecord?id=CVE-2026-121585; retrieved 2026-11-04; source updated 2026-11-03

Revision: e53f00aa9e6660c8fb4588e759b80f52ef371b319ebe859efa75d7ff1aab9954

Canonical: https://y2.dev/cve/CVE-2026-121585

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.