Keycloak security correction
At a glance
- Source
- VigieVuln
- CVE
- CVE-2026-18206
- CVE severity
- LOW 3.7 from the CVE record
- EPSS
- 0.29 % ·
- ENISA EUVD
- EUVD-2026-51486
- Published
- Assigner
- redhat
- Affected products
- Red Hat · Red Hat build of Keycloak 26.6
Red Hat · Red Hat build of Keycloak 26.6.8
Red Hat · Red Hat Data Grid 8
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
Red Hat · Red Hat Single Sign-On 7 - Review
- Reviewed by a human.
- Confidence reported during research
- not provided
- Updated
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.
Reconciliation
Reconciled with AI assistance. Reviewed by a human.
The publisher release notes identify the correction in 26.7.5. The relevant production code before the patch was checked at each listed affected tag, and the corresponding patch was checked at 26.7.5. The exact tags only are assessed; other releases and exploitability conditions remain unassessed and require human review.
Only the listed ranges and versions were verified; other versions remain undetermined.
Information added or clarified: Maven · org.keycloak:keycloak-services — verified versions : 26.7.0, 26.7.1, 26.7.2 ; not affected : 26.7.5.
Original sources
New evidence
- https://www.cve.org/CVERecord?id=CVE-2026-18206 — Original CVE record
- https://www.keycloak.org/2026/09/keycloak-2675-released — Publisher release notes identify this CVE among the fixes
- https://github.com/keycloak/keycloak/issues/51278 — Publisher vulnerability report
- https://github.com/keycloak/keycloak/pull/52933 — Publisher patch for the reported issue
- https://github.com/keycloak/keycloak/blob/26.7.0/services/src/main/java/org/keycloak/services/clientpolicy/condition/ClientUpdaterSourceHostsCondition.java — Production module source at publisher tag 26.7.0; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.7.1/services/src/main/java/org/keycloak/services/clientpolicy/condition/ClientUpdaterSourceHostsCondition.java — Production module source at publisher tag 26.7.1; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.7.2/services/src/main/java/org/keycloak/services/clientpolicy/condition/ClientUpdaterSourceHostsCondition.java — Production module source at publisher tag 26.7.2; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.7.5/services/src/main/java/org/keycloak/services/clientpolicy/condition/ClientUpdaterSourceHostsCondition.java — Production module source at publisher tag 26.7.5; patched hunk verified
Affected packages
| Package | Versions |
|---|---|
| Maven · org.keycloak:keycloak-services | 26.7.0, 26.7.1, 26.7.2 Not affected : 26.7.5 |
Original CVE information
Information from the CVE record and, where indicated, NVD. View the full CVE record
Affected products
| Product | Affected versions |
|---|---|
Red Hat · Red Hat build of Keycloak 26.6rhbk/keycloak-operator-bundle | unaffected : ≥ 26.6.8-2 < * Other versions : affected |
Red Hat · Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9 | unaffected : ≥ 26.6-24 < * Other versions : affected |
Red Hat · Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9-operator | unaffected : ≥ 26.6-24 < * Other versions : affected |
Red Hat · Red Hat build of Keycloak 26.6.8keycloak-services | Other versions : unaffected |
Red Hat · Red Hat build of Keycloak 26.6.8rhbk-keycloak-rhel9/rhbk-keycloak-rhel9 | Other versions : unaffected |
Red Hat · Red Hat build of Keycloak 26.6.8rhbk-openshift-rhel9/rhbk-openshift-rhel9 | Other versions : unaffected |
Red Hat · Red Hat Data Grid 8keycloak-services | Other versions : unaffected |
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Packkeycloak-services | Other versions : unaffected |
Red Hat · Red Hat Single Sign-On 7keycloak-services | Other versions : unaffected |
Weaknesses (CWE)
- CWE-20 — Improper Input Validation
Credits
- Red Hat would like to thank Paul Bottinelli (Trail of Bits in collaboration with OpenAI) for reporting this issue.
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | redhat |
| CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · secalert@redhat.com (Secondary) |
| CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · nvd@nist.gov (Primary) |
References
Sources
| Source | Licence |
|---|---|
| CVE Project | |
| VigieVuln | |
| NVD (NIST) | Public domain |