REDHAT-BUG-2582584: Medium severity Red Hat Keycloak vulnerability
A flaw was found in the authentication flow selection logic within the keycloak-services component. When Keycloak is configured with a client policy using the auth-flow-enforcer executor to select an authentication flow requiring OTP at a higher Level of Assurance (LoA), it fails to properly re-evaluate the session assurance if the authorization request does not explicitly specify an acrvalues parameter or an essential ACR claim. As a result, an existing lower-assurance SSO session (e.g., password-only) is accepted, the OTP requirement is bypassed, and Keycloak issues a signed token asserting the higher ACR claim without verifying the OTP credential. An attacker possessing a valid user password or an active lower-assurance SSO session cookie can exploit this to access protected clients and perform actions requiring multi-factor authentication without providing the second factor.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are exposed when a client policy uses the auth-flow-enforcer executor to select an authentication flow that requires OTP at a higher Level of Assurance. The bypass applies when the authorization request does not explicitly include acr_values or an essential ACR claim.
What does an attacker need to exploit the bypass?
An attacker needs either a valid user password or an active lower-assurance SSO session cookie, such as one established with password-only authentication. They can then access protected clients and perform actions requiring MFA without supplying the OTP factor.
What is the impact on tokens issued after a bypass?
Keycloak can issue a signed token asserting the higher ACR claim even though the required OTP credential was not verified. Relying clients may therefore treat a lower-assurance session as having satisfied the higher assurance requirement.