{"id":"CVE-2025-69286","aliases":["CVE-2025-69286"],"related":[],"kind":"vulnerability","state":"published","title":"RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"RAGFlow es un motor RAG (Generación Aumentada por Recuperación) de código abierto. En versiones anteriores a la 0.22.0, el uso de un algoritmo de generación de claves inseguro en el proceso de generación de la clave API y del token beta (autenticación compartida de asistente/agente) permite que estos tokens sean mutuamente derivables. Específicamente, ambos tokens se generan utilizando el mismo 'URLSafeTimedSerializer' con entradas predecibles, lo que permite a un usuario no autorizado que obtiene la URL compartida del asistente/agente derivar la clave API personal. Esto les otorga control total sobre la cuenta del propietario del asistente/agente. La versión 0.22.0 soluciona el problema.","source":"nvd"}],"published":"2025-12-31T21:52:54.304Z","modified":"2026-09-23T14:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","score":8.9,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-340"],"affected":[{"ranges":[{"version":"< 0.22.0","status":"affected"}],"vendor":"infiniflow","product":"ragflow","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.22.0"}],"vendor":"infiniflow","product":"ragflow","cpe":"cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-9j5g-g4xm-57w7","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/infiniflow/ragflow/commit/a3bb4aadcc3494fb27f2a9933b4c46df8eb532e6","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/apps/system_app.py#L214-L215","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/__init__.py#L343","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/api_utils.py#L378","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-01-02T14:16:35.778Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-69286","url":"https://www.cve.org/CVERecord?id=CVE-2025-69286","licence":"CVE Terms of Use","modified":"2026-01-02T14:35:31.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-69286","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-69286","licence":"Public domain","modified":"2026-09-23T14:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:10.118Z","epss":{"score":0.00855,"percentile":0.59455,"date":"2026-12-02T12:00:21.000Z"}}