Org.keycloak.protocol.oidc: keycloak refresh token reuse bypass via toctou race condition (Red Hat Red Hat build of Keycloak 26.4)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.30 % · percentile 23 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Deferred
Description
A flaw was found in the Keycloak server during refresh token processing, specifically in the TokenManager class responsible for enforcing refresh token reuse policies. When strict refresh token rotation is enabled, the validation and update of refresh token usage are not performed atomically. This allows concurrent refresh requests to bypass single-use enforcement and issue multiple access tokens from the same refresh token. As a result, Keycloak’s refresh token rotation hardening can be undermined.
Weaknesses (CWE)
- CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N | redhat |
| CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N | NVD · secalert@redhat.com (Secondary) |
Advisories
- GHSA-m2w5-7xhv-w6fh — Keycloak does not validate and update refresh token usage atomically
European references
- ENISA EUVD · EUVD-2026-3691
- GCVE · GCVE-0-2026-1035
Affected products
| Product | Versions |
|---|---|
| Red Hat · Red Hat build of Keycloak 26.4 | unaffected 26.4.11-1 < * |
| Red Hat · Red Hat build of Keycloak 26.4 | unaffected 26.4-14 < * |
| Red Hat · Red Hat build of Keycloak 26.4 | unaffected 26.4-14 < * |
| Red Hat · Red Hat build of Keycloak 26.4.11 | |
| Red Hat · Red Hat JBoss Enterprise Application Platform 8 | |
| Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack | |
| Red Hat · Red Hat Single Sign-On 7 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |