CVE-2026-17526 in Keycloakinfo

Summary

by MITRE • 09/17/2026

Keycloak is an open-source identity and access management solution. A vulnerability was discovered where a user with the impersonation role can impersonate a realm administrator. This allows the attacker to gain full administrative control over the realm, including the ability to manage users, clients, and roles.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 09/17/2026

The identified vulnerability resides within Keycloak, an open-source identity and access management solution widely deployed for securing enterprise applications through single sign-on and federated identity protocols. The core technical flaw involves a logic error in the permission evaluation mechanism governing user impersonation features. Specifically, the system fails to enforce strict hierarchical boundaries when processing requests from users holding the impersonation role. This oversight allows an attacker with this specific privilege level to bypass intended restrictions and target realm administrators directly. By exploiting this misconfiguration or code defect, the malicious actor can successfully authenticate as a high-privilege administrator account without possessing valid credentials for that account, effectively hijacking the administrative session through identity substitution rather than credential theft.

The operational impact of this vulnerability is severe due to the elevated privileges associated with realm administration in Keycloak architecture. Once an attacker achieves impersonation of a realm admin, they gain unrestricted control over the entire security domain managed by that realm. This includes the ability to create, modify, or delete user accounts, which facilitates persistent access and lateral movement within the organization's identity infrastructure. Furthermore, the attacker can manage clients, altering OAuth2 and OpenID Connect configurations to redirect authentication flows or exfiltrate tokens. The capability to manipulate roles allows for further privilege escalation across other systems that rely on Keycloak for authorization decisions. This level of control compromises the confidentiality, integrity, and availability of all services protected by the affected realm, potentially leading to complete compromise of downstream applications and sensitive data stores linked via federated identity protocols.

From a classification perspective, this vulnerability aligns with CWE-269 Improper Privilege Management, as it involves an actor obtaining privileges that they are not authorized to possess through flawed access control logic. It also maps closely to ATT&CK technique T1078 Valid Accounts, specifically the sub-technique of using legitimate account credentials or impersonation capabilities to gain unauthorized access. The exploitation vector typically requires initial low-level access with specific role assignments, making it a privilege escalation path rather than an external remote code execution flaw. Attackers often leverage this after compromising lower-tier user accounts that have been granted excessive impersonation permissions during misconfiguration of the identity provider's policy settings.

Mitigation strategies must focus on both immediate remediation and long-term architectural hardening. The primary defense is to apply vendor-provided patches or updates that address the specific logic flaw in the impersonation service implementation, ensuring that role-based access control checks are strictly enforced against administrative boundaries. Organizations should immediately audit their realm configurations to identify any users assigned the impersonation role who do not have a legitimate business justification for such high-level privileges. Implementing the principle of least privilege is critical; administrators should restrict impersonation rights only to trusted support staff and ensure these accounts are monitored closely via enhanced logging and anomaly detection systems. Additionally, enabling multi-factor authentication for all administrative roles adds a crucial layer of defense against session hijacking or credential-based attacks that might precede such exploitation. Regular review of access control policies and periodic penetration testing focused on identity management workflows will help detect similar misconfigurations before they can be leveraged by adversaries seeking to establish persistent footholds within the enterprise environment.

Disclosure

09/17/2026

Moderation

accepted

CPE

ready

EPSS

0.00452

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!