{"id":"CVE-2025-69286","published":"2025-12-31T21:52:54Z","modified":"2026-01-02T14:35:31Z","title":"RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability","vendor":"infiniflow","product":"ragflow","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00797,"percentile":0.57403,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"}],"references":[{"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-9j5g-g4xm-57w7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/infiniflow/ragflow/commit/a3bb4aadcc3494fb27f2a9933b4c46df8eb532e6","tags":["x_refsource_MISC"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/apps/system_app.py#L214-L215","tags":["x_refsource_MISC"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/__init__.py#L343","tags":["x_refsource_MISC"]},{"url":"https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/api_utils.py#L378","tags":["x_refsource_MISC"]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":11.48},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.23}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-11","earliestUrl":"https://github.com/qianlijaingshan/ragflow-audit","repos":[{"name":"qianlijaingshan/ragflow-audit","url":"https://github.com/qianlijaingshan/ragflow-audit","stars":1,"created":"2026-08-11"}]},"first":{"date":"2026-08-11","source":"PoC-in-GitHub","url":"https://github.com/qianlijaingshan/ragflow-audit"},"provenance":"source"},"vendorSlug":"infiniflow","affectedVersions":[{"vendor":"infiniflow","product":"ragflow","versions":["< 0.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-02T14:16:35.778286Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-206092","exploited":false,"provenance":"source"}}