CVE-2026-135768 in Keycloakinfo

Summary

by MITRE • 11/25/2026

A flaw was found in the keycloak-services component of Keycloak, which is used for managing authentication and authorization flows. The issue occurs when a client policy is configured to enforce a high-assurance authentication flow requiring OTP. Due to improper validation of existing sessions, a lower-assurance password-only SSO session can be incorrectly accepted if the request does not explicitly demand a specific assurance level. This allows an attacker with access to a user's password or session to bypass the second factor and obtain tokens claiming a higher level of security.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Keycloak services represents a critical authentication flow manipulation flaw within the identity and access management infrastructure. Keycloak is widely deployed as a central component for managing single sign-on, multi-factor authentication, and role-based access control across enterprise environments. The specific defect resides in how the system handles session validation when transitioning between different security contexts or enforcing policy requirements. Specifically, the issue arises during the evaluation of client policies that mandate high-assurance authentication flows, such as those requiring One-Time Passwords for elevated privilege levels or sensitive operations. Under normal operational parameters, a user attempting to access resources governed by these strict policies should be required to re-authenticate with the appropriate second factor if their current session does not meet the assurance threshold. However, due to improper validation logic within the service layer, this enforcement mechanism fails under specific conditions where the incoming request does not explicitly demand a particular assurance level in its initial parameters.

From a technical perspective, the root cause is an inconsistency in how existing sessions are assessed against policy requirements. When a client application initiates a request that relies on Keycloak for authentication but omits explicit instructions regarding the required security assurance level, the system incorrectly accepts lower-assurance password-only single sign-on sessions as valid substitutes for high-assurance flows. This logic error allows an attacker who has obtained a user's credentials or hijacked their session cookie to bypass the mandatory second factor of authentication. The vulnerability effectively creates a downgrade attack vector where the security context is artificially lowered, permitting access to resources that should be protected by multi-factor authentication protocols. This flaw undermines the fundamental principle of least privilege and assurance-based access control, as it allows unauthorized entities to obtain tokens claiming a higher level of security than they have legitimately earned through proper verification procedures.

The operational impact of this vulnerability is severe for organizations relying on Keycloak for securing sensitive applications or administrative interfaces. An attacker leveraging this flaw can gain unauthorized access to protected resources without possessing the second factor, such as an authenticator app token or hardware key. This bypass capability facilitates account takeover scenarios and enables lateral movement within internal networks if the compromised session grants access to critical systems. Furthermore, because the vulnerability allows for the issuance of tokens with falsely elevated security claims, it can lead to significant compliance violations in regulated industries where multi-factor authentication is a mandatory control requirement. The ability to impersonate users or escalate privileges without detection poses a substantial risk to data integrity and confidentiality, potentially leading to financial loss, reputational damage, and regulatory penalties.

This vulnerability aligns with CWE-287 Improper Authentication, as the system fails to correctly verify identity credentials before granting access. It also relates to CWE-613 Insufficient Session Expiration, insofar as it exploits existing sessions that may not have been properly invalidated or re-evaluated against current policy requirements. In terms of offensive security frameworks, this flaw maps directly to MITRE ATT&CK technique T1078 Valid Accounts and specifically the sub-technique for bypassing multi-factor authentication mechanisms. Attackers can use credential stuffing or phishing to obtain passwords, then exploit this logic error to skip the second factor step entirely. To mitigate this risk, administrators should ensure that Keycloak is updated to the latest patched version where the session validation logic has been corrected to strictly enforce assurance levels regardless of explicit request parameters. Additionally, organizations should review their client configurations to explicitly define required authentication flows and consider implementing additional monitoring for anomalous login patterns or token issuance events that deviate from expected user behavior profiles.

Responsible

Redhat

Reservation

11/24/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00382

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!