CVE-2026-121585
Deferred Deferred - Pending Action

Authorization Bypass in InfiniFlow RAGFlow via SQL Manipulation

Vulnerability report for CVE-2026-121585, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-04

Last updated on: 2026-11-07

Assigner: VulDB

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-04
Last Modified
2026-11-07
Generated
2026-11-14
AI Q&A
2026-11-04
EPSS Evaluated
2026-11-13
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-285 The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
CWE-639 The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-121585 is a cross-tenant read vulnerability in RAGFlow affecting deployments using the Infinity document engine. The issue occurs because RAGFlow converts user queries into SQL statements using an LLM and executes them directly on the Infinity database without proper validation or tenant isolation. An authenticated user can read another tenant's knowledge base tables by crafting SQL queries that bypass tenant boundaries. The vulnerability arises from three main factors: reliance on the LLM for tenant boundaries, lack of authentication in Infinity's PostgreSQL wire protocol handler, and insufficient validation in the RunSQL function.

Detection Guidance

To detect this vulnerability, check if your RAGFlow deployment uses the Infinity document engine (DOC_ENGINE=infinity). Verify if Infinity's PostgreSQL wire protocol handler allows unauthenticated connections by attempting to connect without credentials. Use commands like 'psql -h <infinity-host> -p <port> -U <user>' without a password. If the connection succeeds, the system is vulnerable. Also, test if cross-tenant queries return data by executing 'SHOW TABLES' and querying tables from other tenants.

Impact Analysis

This vulnerability allows an attacker with a normal RAGFlow account to read sensitive data from other tenants' knowledge bases, including document content. The attack can be performed remotely through the chat interface by sending a malicious query. The exploit enables unauthorized access to confidential information across tenant boundaries, potentially leading to data breaches and loss of sensitive information.

Compliance Impact

This vulnerability likely violates compliance requirements for data protection regulations like GDPR and HIPAA, which mandate strict access controls and tenant isolation for sensitive data. The unauthorized cross-tenant data access could result in regulatory penalties, loss of compliance certifications, and reputational damage due to data exposure.

Mitigation Strategies

Immediately switch from the Infinity document engine to Elasticsearch by updating the DOC_ENGINE environment variable and resetting data volumes. Apply the sql_guard.py validation module to enforce read-only SQL queries in the chat interface. Ensure Infinity's PostgreSQL handler enforces authentication and permission checks. Restrict network access to Infinity's PostgreSQL port and monitor for unauthorized SQL execution attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-121585. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...