{"id":"CVE-2026-90997","aliases":["DHI-oai5-wrxl-ih5h-siee"],"summary":"Keycloak-services: keycloak: replay protection bypass leads to unauthorized access via database driver semantics mismatch","published_at":"2026-09-16T14:21:23Z","modified_at":"2026-11-16T02:35:56.401554Z","products":[{"slug":"keycloak","name":"Keycloak","category":"identity"}],"rating":{"severity":"high","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00395999988541007,"percentile":0.3459799885749817,"date":"2026-11-19T00:00:00Z"},"priority":9.4,"details":"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_stack":[{"ecosystem":"CVE","package":"Keycloak/Keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"26.7.0"},{"fixed":"26.7.4"}]}],"fixed":["26.7.4"],"provider":"cvelistv5","source":"CVE-2026-90997","relation":"self"}],"affected_other":[{"ecosystem":"Docker Hardened Images:Debian:13","package":"keycloak-26.7","purl":"pkg:deb/dhi/keycloak-26.7","versions":["26.7.2-0","26.7.3-0","26.7.3-1","26.7.3-2","26.7.3-3","26.7.3-4","26.7.4-0","26.7.4-1","26.7.4-2","26.7.4-3","26.7.4-4","26.7.4-5","26.7.4-7"],"provider":"osv","source":"DHI-oai5-wrxl-ih5h-siee","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"keycloak-26.7-fips","purl":"pkg:deb/dhi/keycloak-26.7-fips","versions":["26.7.2-0","26.7.3-0","26.7.3-1","26.7.3-2","26.7.3-3","26.7.3-4","26.7.4-0","26.7.4-1","26.7.4-2","26.7.4-3","26.7.4-4","26.7.4-5","26.7.4-7"],"provider":"osv","source":"DHI-oai5-wrxl-ih5h-siee","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"not_affected","packages":["rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-90997"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3418","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3418","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-09-16T22:00:00Z","modified_at":"2026-09-17T22:00:00Z","summary":"Keycloak: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um Sicherheitsvorkehrungen zu umgehen, um seine Privilegien zu erhöhen, um einen Denial of Service Angriff durchzuführen und um Informationen offenzulegen.\n\nKeycloak ermöglicht Single Sign-On mit Identity and Access Management für moderne Anwendungen und Dienste.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-3418"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3418.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3418"},{"type":"WEB","url":"https://www.keycloak.org/2026/09/keycloak-2674-released"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-xpwp-2pcm-8xq3"}]},{"provider":"cvelistv5","source_id":"CVE-2026-90997","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-90997","license":"CC-BY-4.0","published_at":"2026-09-17T18:47:34.059Z","modified_at":"2026-09-25T06:42:50.534Z","summary":"Keycloak-services: keycloak: replay protection bypass leads to unauthorized access via database driver semantics mismatch","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-90997"}],"affected":[{"ecosystem":"CVE","package":"Keycloak/Keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"26.7.0"},{"fixed":"26.7.4"}]}],"fixed":["26.7.4"],"provider":"cvelistv5","source":"CVE-2026-90997","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-90997"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2533141"}]},{"provider":"osv","source_id":"DHI-oai5-wrxl-ih5h-siee","relation":"self","url":"https://osv.dev/vulnerability/DHI-oai5-wrxl-ih5h-siee","license":"Apache-2.0","published_at":"2026-11-11T21:02:53Z","modified_at":"2026-11-16T02:35:56.401554Z","summary":"### Impact","details":"### Impact\r\n\r\nA 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.\r\n\r\n### Patches\r\n\r\nThis was fixed in Keycloak 26.7.4\r\n\r\n### Workarounds\r\n\r\nDisable the stateless feature of Keycloak\r\n\r\n### References\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2026-90997\r\nhttps://github.com/keycloak/keycloak/issues/52834","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"DHI-oai5-wrxl-ih5h-siee"}],"affected":[{"ecosystem":"Docker Hardened Images:Debian:13","package":"keycloak-26.7","purl":"pkg:deb/dhi/keycloak-26.7","versions":["26.7.2-0","26.7.3-0","26.7.3-1","26.7.3-2","26.7.3-3","26.7.3-4","26.7.4-0","26.7.4-1","26.7.4-2","26.7.4-3","26.7.4-4","26.7.4-5","26.7.4-7"],"provider":"osv","source":"DHI-oai5-wrxl-ih5h-siee","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"keycloak-26.7-fips","purl":"pkg:deb/dhi/keycloak-26.7-fips","versions":["26.7.2-0","26.7.3-0","26.7.3-1","26.7.3-2","26.7.3-3","26.7.3-4","26.7.4-0","26.7.4-1","26.7.4-2","26.7.4-3","26.7.4-4","26.7.4-5","26.7.4-7"],"provider":"osv","source":"DHI-oai5-wrxl-ih5h-siee","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-oai5-wrxl-ih5h-siee"},{"type":"ADVISORY","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-xpwp-2pcm-8xq3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90997"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-90997"}]},{"provider":"redhat-vex","source_id":"CVE-2026-90997","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-90997","license":"CC-BY-4.0","published_at":"2026-09-16T14:21:23Z","modified_at":"2026-09-25T06:21:20Z","summary":"keycloak-services: Keycloak: Replay protection bypass leads to unauthorized access via database driver semantics mismatch","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-90997"},{"type":"Red Hat","score":"Important","source":"CVE-2026-90997"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"not_affected","packages":["rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-90997"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-90997.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-90997"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2533141"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-90997"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90997"}]}],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-90997"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2533141"},{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-oai5-wrxl-ih5h-siee"},{"type":"ADVISORY","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-xpwp-2pcm-8xq3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90997"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-90997.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-90997"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3418","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3418","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-09-17T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-90997","url":"https://www.cve.org/CVERecord?id=CVE-2026-90997","license":"CC-BY-4.0","modified_at":"2026-09-25T06:42:50.534Z","relation":"self"},{"provider":"osv","source_id":"DHI-oai5-wrxl-ih5h-siee","url":"https://osv.dev/vulnerability/DHI-oai5-wrxl-ih5h-siee","license":"Apache-2.0","modified_at":"2026-11-16T02:35:56.401554Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-90997","url":"https://access.redhat.com/security/cve/CVE-2026-90997","license":"CC-BY-4.0","modified_at":"2026-09-25T06:21:20Z","relation":"self"}]}
