CVE-2026-18206
Received Received - Intake

Keycloak Wildcard Domain Validation Bypass in Keycloak-services

Vulnerability report for CVE-2026-18206, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-31

Last updated on: 2026-07-31

Assigner: Red Hat, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-31
Last Modified
2026-07-31
Generated
2026-07-31
AI Q&A
2026-07-31
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
redhat keycloak *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in Keycloak's keycloak-services component. It involves improper validation of wildcard domains used by realm administrators to restrict client registration or updates. Attackers can bypass these restrictions by controlling reverse DNS, allowing unauthorized client modifications even if they don't own a legitimate subdomain.

Detection Guidance

To detect this vulnerability, inspect Keycloak's client policy configurations for wildcard domain restrictions (e.g., *.example.com). Check if the hostname matching logic improperly validates subdomains by verifying if it only checks suffixes without proper boundary validation. Review logs for unauthorized client registration or update attempts from unexpected hosts.

Impact Analysis

If you are a Keycloak administrator using wildcard domains for client restrictions, attackers could exploit this to modify clients without proper authorization. This may lead to unauthorized access to services or data managed by Keycloak, depending on the compromised client's permissions.

Compliance Impact

This vulnerability could undermine compliance efforts by allowing unauthorized access to sensitive data or systems. For GDPR, it may violate principles of data protection and access control. For HIPAA, it could lead to unauthorized access to protected health information, potentially breaching confidentiality requirements.

Mitigation Strategies

Avoid using wildcard domains (like *.example.com) for host-based restrictions in Keycloak realm administrator settings. Replace them with explicit domain lists to prevent unauthorized client modifications.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18206. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart