Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConfigure server PTR record to end with target domain suffix
-
DeliveryConnect to Keycloak realm with controlled hostname
-
ExploitHostname passes flawed wildcard suffix validation
-
ExecutionRegister or modify unauthorized OAuth/OIDC client
-
ImpactLeverage rogue client for downstream access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) a realm administrator must have configured a wildcard domain pattern (e.g., '*.example.com') in the client registration or client update host restriction policy - this is not a default Keycloak configuration; (2) the attacker must control the reverse DNS (PTR record) of the IP address from which they are connecting, enabling them to present a hostname that ends with the configured domain suffix without being a legitimate subdomain. Exploitation is limited to the client registration and client update operations - it does not affect authentication flows, token issuance, or existing client credentials. The PR:N CVSS metric indicates no Keycloak credentials are required for the bypass itself, but reverse DNS control is a meaningful operational barrier. Realms that do not use wildcard host restrictions, or that restrict client registration to authenticated administrators, are not affected. |
| Impact | The NVD-assigned CVSS 3.1 score of 3.7 (Low) reflects the narrow real-world risk profile accurately. The vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N captures two key limiting factors: AC:H (requiring the attacker to control the reverse DNS of their connection, a non-trivial operational prerequisite) and I:L only (limited to client configuration integrity, not credential or token theft). There is no confirmed active exploitation (no CISA KEV listing) and no publicly available exploit code identified at time of analysis. EPSS data was not provided in the source intelligence. The vulnerability's real-world impact is further bounded by the deployment condition: it only applies to realms where administrators have configured wildcard domain host restrictions for client registration - not a default Keycloak configuration. Despite Keycloak's broad enterprise footprint, the combination of AC:H, a non-default prerequisite, and limited integrity-only impact places this firmly in low-priority patching for most environments. |
| Exploit ScenarioDerived | An attacker who owns a server with a PTR record resolving to 'attackerexample.com' targets a Keycloak realm configured with a '*.example.com' wildcard host restriction. By connecting from that server, the attacker's hostname passes the suffix-based validation check and is permitted to register or modify OAuth/OIDC clients in the realm. No public exploit code is known, and the reverse DNS manipulation step makes this attack non-trivial to execute at scale. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Wildcard domain validation in Keycloak's keycloak-services component can be bypassed by an attacker who controls their connection's reverse DNS, enabling unauthorized client registration or modification against a Keycloak realm. The flaw stems from the system accepting any hostname that merely ends with the configured domain suffix (e.g., 'attackerexample.com' satisfying a '*.example.com' restriction) rather than enforcing true subdomain membership. Exploitation requires high attack complexity due to the reverse DNS control prerequisite, and no public exploit or CISA KEV listing has been identified at the time of analysis.
RemediationAI
Patch availability per vendor advisory: a patch is available per Red Hat advisory (https://access.redhat.com/security/cve/CVE-2026-18206), but an exact patched version number is not confirmed in the available intelligence - consult the Red Hat advisory and Bugzilla entry (https://bugzilla.redhat.com/show_bug.cgi?id=2508292) for the specific fixed build. As an immediate compensating control, realm administrators should replace wildcard domain entries in client registration policies with explicit, fully qualified domain names (e.g., replace '*.example.com' with 'app.example.com', 'api.example.com') - this eliminates the suffix-match ambiguity entirely, though it requires enumerating all legitimate subdomains and increases administrative overhead when new subdomains are added. Alternatively, restrict client registration and update operations to authenticated realm administrators only, removing reliance on host-based restrictions as an access control mechanism.
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
The keycloak-services component implements host-based restrictions on client registration and update operations, allowing realm administrators to configure wildcard domain patterns (e.g., '*.example.com') to permit only trusted hosts. CWE-20 (Improper Input Validation) describes the root cause: the validation logic performs a suffix-match check rather than a proper subdomain parse, failing to verify the presence of a subdomain delimiter before the domain component. A hostname such as 'attackerexample.com' satisfies a suffix check against 'example.com' but is not a legitimate subdomain of 'example.com'. Because Keycloak uses the connecting client's hostname - resolvable via reverse DNS - for this check, an attacker who controls their server's PTR record can craft a reverse DNS entry to satisfy the flawed validation. Affected products per CPE data include Red Hat Build of Keycloak, Red Hat Single Sign-On 7, Red Hat Data Grid 8, and Red Hat JBoss Enterprise Application Platform Expansion Pack.
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:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Network-reachable but AC:H due to required reverse DNS control; no credentials needed; only limited client-configuration integrity impact, no confidentiality or availability effect.
Primary rating from Vendor (redhat).
CVSS VectorNVD
DescriptionNVD
A flaw was found in the keycloak-services component of Keycloak, which provides identity and access management services. The issue occurs when a realm administrator uses a wildcard domain (like *.example.com) to restrict which hosts can register or update clients. Due to improper validation, the system accepts any hostname that ends with the specified domain suffix, even if it is not a legitimate subdomain. An attacker who can control the reverse DNS of their connection can bypass these host-based restrictions, potentially allowing unauthorized client modifications.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
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-51486
GHSA-2w88-g477-cxmj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB