Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain or compromise delegated admin credentials
-
DeliveryAuthenticate to Keycloak admin interface
-
ExploitIdentify LDAP federation provider configuration
-
InstallCraft user lookup request with out-of-scope DN
-
C2Bypass search boundary validation
-
ExecuteRetrieve account attributes from unauthorized directory subtree
-
ImpactImport out-of-scope users into Keycloak local storage
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) Keycloak must be configured with an active LDAP user federation storage provider - deployments using only local Keycloak storage or non-LDAP identity providers (SAML, OIDC, social) are not affected; (2) the attacker must hold delegated administrator privileges within Keycloak (confirmed by CVSS PR:L), meaning general end users and unauthenticated attackers cannot exploit this; (3) the attacker must be able to initiate a user search or lookup operation via the delegated admin interface using a crafted DN value. Exploitation is limited to the Keycloak LDAP federation boundary - it does not grant broader directory write access or administrative control beyond the federated identity plane. The scope is unchanged (S:U), meaning lateral movement to other systems is not a direct outcome of this vulnerability alone. |
| Impact | The CVSS 3.1 score of 5.4 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N accurately reflects the bounded nature of this flaw. The PR:L metric is the critical limiting factor - only authenticated delegated administrators can trigger the bypass, ruling out unauthenticated or general-user exploitation. Attack complexity is low once the role is obtained, requiring no special conditions beyond a crafted DN. The C:L impact reflects directory enumeration outside intended scope; the I:L impact is notable - unintended user imports into local storage could introduce identity confusion or create unauthorized federation relationships. EPSS data is not available in the provided intelligence, so probability-of-exploitation scoring cannot be cross-referenced. No KEV listing and no public POC confirm this is not currently being mass-exploited. Real-world priority should be elevated in multi-tenant Keycloak environments with delegated admin models, where a malicious or compromised delegated admin could use this to enumerate users from other organizational units or import privileged accounts into their accessible realm. |
| Exploit ScenarioDerived | A malicious or compromised delegated administrator in a Keycloak environment with active LDAP federation constructs a user lookup request referencing a DN outside the configured search base - for example, targeting a DN in a sibling organizational unit or parent container not intended to be federated. Keycloak processes the request without boundary validation, returning account attributes for the out-of-scope directory entry and potentially importing that user into Keycloak local storage, where they may gain unintended access to applications protected by the SSO realm. No public POC has been identified, but the attack requires only a crafted DN string and delegated admin session access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Keycloak's LDAP storage provider allows delegated administrators to bypass configured search boundaries by supplying a crafted Distinguished Name (DN), exposing account information from unauthorized directory subtrees and triggering unintended user imports into Keycloak local storage. Affected deployments include Red Hat Build of Keycloak, Red Hat Single Sign-On 7, Red Hat Data Grid 8, and the JBoss EAP Expansion Pack. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis; exploitation is constrained to authenticated delegated administrators with access to the LDAP federation interface.
RemediationAI
Apply the vendor patch once Red Hat publishes an updated package via the advisory at https://access.redhat.com/security/cve/CVE-2026-16071; a specific patched release version is not confirmed in the available data, so monitor the Red Hat Bugzilla entry (https://bugzilla.redhat.com/show_bug.cgi?id=2501720) for a confirmed fix version. As an immediate compensating control, audit and minimize the set of accounts holding delegated administrator roles in Keycloak - reducing the delegated admin population directly limits the attacker surface, as PR:L privileges are required. Additionally, review LDAP federation provider configurations to confirm search base DNs are as restrictive as possible, and enable audit logging on Keycloak's admin events to detect anomalous user federation or import activity from unexpected DN paths. Restricting network access to the Keycloak admin console to trusted internal segments reduces exposure, with the trade-off of impacting remote administration workflows.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak's LDAP user federation provider maps external directory entries to internal Keycloak identities using a configured search base DN, which is intended to act as an authorization boundary - restricting which directory subtrees can be federated. The flaw is a missing validation check when a delegated administrator performs a user lookup by supplying a specific LDAP entry DN: the system processes the lookup without verifying that the target DN falls within the configured search boundary. This is functionally analogous to a path traversal or authorization bypass at the LDAP query layer (behavior consistent with CWE-284 Improper Access Control, though no CWE is formally assigned). Affected products per CPE data include: cpe:2.3:a:red_hat:red_hat_build_of_keycloak, cpe:2.3:a:red_hat:red_hat_single_sign-on_7, cpe:2.3:a:red_hat:red_hat_data_grid_8, and cpe:2.3:a:red_hat:red_hat_jboss_enterprise_application_platform_expansion_pack. The vulnerability exists in the LDAP provider component shared across these Red Hat products.
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Network vector confirmed by web-based admin interface; PR:L reflects delegated admin role requirement; C:L and I:L for directory disclosure and unintended user import; no availability impact.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the LDAP storage provider of Keycloak, which is used to federate user identities from external directories. The issue occurs when a delegated administrator performs a search using a specific LDAP entry Distinguished Name (DN). Due to missing validation, the system allows lookups for users located outside the configured search boundary, leading to the disclosure of account information from unauthorized parts of the directory and unintended importing of those users into local storage.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
EUVD-2026-53383
GHSA-m28w-c4hx-9fvg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB