CVE Tools

CVE-2025-69286

RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability

Published: Dec 31, 2025Updated: Jan 6, 2026 Sources: CVE List NVDCWE-340

Description

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.22.0, the use of an insecure key generation algorithm in the API key and beta (assistant/agent share auth) token generation process allows these tokens to be mutually derivable. Specifically, both tokens are generated using the same `URLSafeTimedSerializer` with predictable inputs, enabling an unauthorized user who obtains the shared assistant/agent URL to derive the personal API key. This grants them full control over the assistant/agent owner's account. Version 0.22.0 fixes the issue.

In plain language

AI Act now

CVE-2025-69286 is a serious RAGFlow token-guessing weakness that can let an attacker bypass logins and take over an assistant/agent account if they have the shared assistant/agent link; if you run RAGFlow and use those shared features, you should act now and upgrade to 0.22.0 or later.

Executive summary

In RAGFlow (versions before 0.22.0), predictable token generation (CWE-340) allows an attacker with access to the shared assistant/agent URL to derive the owner’s API key and bypass authentication, leading to full account takeover; exploitation is reported in the wild (actor: Qilin).

If affected, business impact
Full assistant/agent account takeoverUnauthorized API accessData exposure from RAG workflowsService disruption via abuse

What to do now

  1. Check your RAGFlow version (look for the running version/build number in your deployment logs or the UI/config).
  2. If your version is older than 0.22.0, upgrade RAGFlow to 0.22.0 or later.
  3. Confirm whether you use “shared assistant/agent” links (beta share/auth features). If yes and you can’t upgrade immediately, temporarily disable sharing of assistant/agent links and rotate any generated keys/tokens you use for access.
  4. After upgrading, verify authentication still works as expected and that any previously issued shared links no longer grant access.
Patch / advisory Some work to apply

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

infiniflow
commercialaka ragflow, infiniflow/ragflow

Exploitability

Official Patch Available

References

and 2 more references View all →
1

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-69286 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows