{
  "id": "CVE-2026-90997",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-90997",
  "published_at": "2026-09-17T18:47:34.059Z",
  "title": "Keycloak-services: keycloak: replay protection bypass leads to unauthorized access via database driver semantics mismatch",
  "vendor": "Keycloak",
  "product": "Keycloak",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "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": "A flaw was found in Keycloak. When deployed in stateless mode with MySQL or MariaDB, a mismatch in row-count semantics between the database driver and Keycloak's application logic allows an attacker to bypass replay protection. This vulnerability enables an attacker who intercepts single-use security artifacts, such as JWT client assertions, DPoP proofs, or one-time password (TOTP) codes, to replay them. Successful exploitation grants unauthorized access to the token endpoint or login flow.",
  "cwe": "CWE-294",
  "cvss_by_source": {
    "cna": 7.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Keycloak",
        "product": "Keycloak",
        "ranges": [
          "\u003e= 26.7.0, \u003c 26.7.4"
        ],
        "fixed_in": [
          "26.7.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Keycloak to 26.7.4 or later."
    ],
    "workarounds": [
      "To mitigate this issue, configure the JDBC connection string for MySQL/MariaDB to explicitly set `useAffectedRows=true`. This ensures the database driver correctly reports affected rows, preventing the replay protection bypass. This mitigation is applicable only when Keycloak is deployed in stateless mode and utilizes MySQL or MariaDB as its database. A restart of the Keycloak service will be required for the configuration change to take effect."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
