Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-90997

HIGH 7.4EPSS 25%

Keycloak-services: keycloak: replay protection bypass leads to unauthorized access via database driver semantics mismatch

Mitigation

  • Upgrade Keycloak to 26.7.4 or later.
  • Vendor workaround: 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.

Who should check

  • Anyone running Keycloak >= 26.7.0, < 26.7.4
  • Anyone running Red Hat Build of Keycloak (versions: see the vendor advisory)

Vulnerability facts

Affected
Keycloak >= 26.7.0, < 26.7.4; Red Hat Build of Keycloak; Red Hat Build of Keycloak
Fixed in
Keycloak 26.7.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
0.40% chance of exploitation in 30 days (percentile 25, 2026-11-26)
CWE
CWE-294
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Keycloak>= 26.7.0, < 26.7.4—cvelist
Red Hat Build of Keycloak——cvelist
Red Hat Build of Keycloak——cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-90997. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90997.md
Affected: Keycloak >= 26.7.0, < 26.7.4; Red Hat Build of Keycloak; Red Hat Build of Keycloak
Fixed in: Keycloak 26.7.4

Steps:
1. Search this machine and project for Keycloak, Red Hat Build of Keycloak: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-90997 being exploited?

There is no confirmed exploitation: CVE-2026-90997 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-90997?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-90997?

Keycloak >= 26.7.0, < 26.7.4; Red Hat Build of Keycloak; Red Hat Build of Keycloak.

Is there a fix for CVE-2026-90997?

Yes. Fixed in Keycloak 26.7.4. Upgrade Keycloak to 26.7.4 or later. Vendor workaround: 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.

How do I check if I'm affected by CVE-2026-90997?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors