CVE-2025-69286
RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability
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 nowCVE-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.
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).
What to do now
- Check your RAGFlow version (look for the running version/build number in your deployment logs or the UI/config).
- If your version is older than 0.22.0, upgrade RAGFlow to 0.22.0 or later.
- 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.
- After upgrading, verify authentication still works as expected and that any previously issued shared links no longer grant access.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
References
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