# CVE-2025-69286: RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-31T21:52:54.304Z
- Modified: 2026-09-23T14:10:00.190Z
- Weaknesses: CWE-340
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- infiniflow ragflow: < 0.22.0; before 0.22.0

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/infiniflow/ragflow/security/advisories/GHSA-9j5g-g4xm-57w7> (exploit, vendor-advisory)
- <https://github.com/infiniflow/ragflow/commit/a3bb4aadcc3494fb27f2a9933b4c46df8eb532e6> (patch)
- <https://github.com/infiniflow/ragflow/blob/v0.20.5/api/apps/system_app.py#L214-L215> (product)
- <https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/__init__.py#L343> (product)
- <https://github.com/infiniflow/ragflow/blob/v0.20.5/api/utils/api_utils.py#L378> (product)

## Sources

- CVE List: [CVE-2025-69286](https://www.cve.org/CVERecord?id=CVE-2025-69286), CVE Terms of Use, modified 2026-01-02
- NVD: [CVE-2025-69286](https://nvd.nist.gov/vuln/detail/CVE-2025-69286), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2025-69286 · Whole record: https://cve.day/CVE-2025-69286.json · Rebuilt by cve.day 2026-11-25T22:59:10.118Z
