REDHAT-BUG-2508313: Medium severity Keycloak keycloak-services vulnerability
A flaw was found in the TokenManager.NotBeforeCheck logic within keycloak-services. The vulnerability occurs when a realm has a nonzero not-before timestamp (e.g., from a previous global revocation or import) and an administrator subsequently sets a newer client-specific not-before timestamp to revoke tokens for a single client. Due to a logic error in how these policies are compared (incorrectly prioritizing the older realm-level value or failing to evaluate the newer client-level value), the client-level revocation is ignored. An authenticated attacker holding OIDC tokens (access or refresh) issued after the realm not-before but before the client not-before can continue to use these tokens. Specifically, an attacker can successfully perform token refresh requests, receive an active status from the introspection endpoint, and retrieve user claims from the UserInfo endpoint, bypassing the intended revocation. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2508313?
The severity of REDHAT-BUG-2508313 is classified as medium with a score of 4.
What is the nature of the vulnerability REDHAT-BUG-2508313?
The vulnerability REDHAT-BUG-2508313 involves a flaw in the TokenManager.NotBeforeCheck logic within keycloak-services.
How does the vulnerability REDHAT-BUG-2508313 occur?
REDHAT-BUG-2508313 occurs when a realm has a nonzero not-before timestamp and a new client-specific not-before timestamp is set by an administrator.
How can I mitigate REDHAT-BUG-2508313 in Keycloak?
To mitigate REDHAT-BUG-2508313, ensure proper management of not-before timestamps within the Keycloak settings.
What software is affected by REDHAT-BUG-2508313?
The software affected by REDHAT-BUG-2508313 is Keycloak, specifically the keycloak-services component.