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.
References (5)
Core 5
Core References
Exploit, Vendor Advisory x_refsource_confirm
https://github.com/infiniflow/ragflow/security/advisories/GHSA-9j5g-g4xm-57w7
Patch x_refsource_misc
https://github.com/infiniflow/ragflow/commit/a3bb4aadcc3494fb27f2a9933b4c46df8eb532e6
Product x_refsource_misc
https://github.com/infiniflow/ragflow/blob/v0.20.5/api/apps/system_app.py#L214-L215
Product x_refsource_misc
https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/__init__.py#L343
Product x_refsource_misc
https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/api_utils.py#L378
Scores
CVSS v3
9.8
EPSS
0.0013
EPSS Percentile
31.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
total
Details
CWE
CWE-340
Status
published
Products (1)
infiniflow/ragflow
< 0.22.0
Published
Dec 31, 2025
Tracked Since
Feb 18, 2026