{
  "id": "CVE-2025-69286",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-69286",
  "published_at": "2025-12-31T21:52:54.304Z",
  "title": "RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability",
  "vendor": "infiniflow",
  "product": "ragflow",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-340",
  "cpes": [
    "cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.9,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "qianlijaingshan/ragflow-audit",
      "url": "https://github.com/qianlijaingshan/ragflow-audit",
      "created_at": "2026-08-11T02:36:51Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "unknown",
      "suspicion_score": 35,
      "suspicious": false,
      "suspicion_reasons": [
        "README asks to download a release/binary/archive"
      ],
      "status": "analyzed",
      "owner_created_at": "2025-04-17T11:30:28Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "infiniflow",
        "product": "ragflow",
        "ranges": [
          "\u003c 0.22.0"
        ],
        "fixed_in": [
          "0.22.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade ragflow to 0.22.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/infiniflow/ragflow/security/advisories/GHSA-9j5g-g4xm-57w7"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/infiniflow/ragflow/commit/a3bb4aadcc3494fb27f2a9933b4c46df8eb532e6"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
