Keycloak: authorization bypass
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
A flaw was found in the Keycloak package. This issue occurs due to a permissive regular expression hardcoded for filtering which allows hosts to register a dynamic client. A malicious user with enough information about the environment could jeopardize an environment with this specific Dynamic Client Registration and TrustedDomain configuration previously unauthorized.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | org.keycloak:keycloak-services | 22.0.0 to before 22.0.10; 23.0.0 to before 24.0.3 | 22.0.10, 24.0.3 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22.0.10-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-13 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-16 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22.0.10 | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | 18.0.13-1.redhat_00001.1.el7sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | 18.0.13-1.redhat_00001.1.el8sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | 18.0.13-1.redhat_00001.1.el9sso | Patch available | CNA |
| Red Hat | RHEL-8 based Middleware Containers | — | 7.6-46 | Patch available | CNA |
| Red Hat | RHSSO 7.6.8 | — | — | Not affected | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 22.0.10 | 22.0.10 | Patch available | GHSA-46c8-635v-68r2 |
| — | org.keycloak:keycloak-services (Maven) | 23.0.0 to before 24.0.3 | 24.0.3 | Patch available | GHSA-46c8-635v-68r2 |
- org.keycloak:keycloak-services Vendor— Affected 22.0.0 to before 22.0.10; 23.0.0 to before 24.0.3 Fixed in 22.0.10, 24.0.3 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.10-1 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-13 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-16 Patch available CNA
- Red Hat build of Keycloak 22.0.10 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.13-1.redhat_00001.1.el7sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.13-1.redhat_00001.1.el8sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.13-1.redhat_00001.1.el9sso Patch available CNA
- RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-46 Patch available CNA
- RHSSO 7.6.8 VendorRed Hat Affected — Fixed in — Not affected CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 22.0.10 Fixed in 22.0.10 Patch available GHSA-46c8-635v-68r2
- org.keycloak:keycloak-services (Maven) Vendor— Affected 23.0.0 to before 24.0.3 Fixed in 24.0.3 Patch available GHSA-46c8-635v-68r2
CPE names CNA · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:build_keycloak:22::el9 | 22 | — | Red Hat |
| cpe:/a:redhat:build_keycloak:22 | 22 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el7 | 7.6 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el8 | 7.6 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el9 | 7.6 | — | Red Hat |
| cpe:/a:redhat:rhosemc:1.0::el8 | 1.0 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6 | 7.6 | — | Red Hat |
- cpe:/a:redhat:build_keycloak:22::el9 Versions 22 — ·Red Hat
- cpe:/a:redhat:build_keycloak:22 Versions 22 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el7 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el8 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el9 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:rhosemc:1.0::el8 Versions 1.0 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6 Versions 7.6 — ·Red Hat
Remediation
- Fix · CNA org.keycloak:keycloak-services Fixed in 22.0.10, 24.0.3
- Fix · GHSA-46c8-635v-68r2 org.keycloak:keycloak-services (Maven) Fixed in 22.0.10 Advisory →
- Fix · GHSA-46c8-635v-68r2 org.keycloak:keycloak-services (Maven) Fixed in 24.0.3 Advisory →
Red Hat 7 advisories
- RHSA-2024:1867 Released 2024-04-16 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.10 enhancement and security update
- Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2024:1868 Released 2024-04-16 · Red Hat rating ImportantRed Hat build of Keycloak security update
- Red Hat build of Keycloak 22.0.10
- RHSA-2024:1866 Released 2024-04-16 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.8 security update
- RHSSO 7.6.8
Show 4 more Red Hat advisories
- RHSA-2024:1862 Released 2024-04-16 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.8 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.13-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.13-1.redhat_00001.1.el9sso
- RHSA-2024:1861 Released 2024-04-16 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.8 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.13-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.13-1.redhat_00001.1.el8sso
- RHSA-2024:1860 Released 2024-04-16 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.8 enhancement and security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.13-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.13-1.redhat_00001.1.el7sso
- RHSA-2024:1864 Released 2024-04-16 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.8 for OpenShift image enhancement and security update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Middleware Containers for OpenShift | Fixed | RHSA-2024:1864 |
| RHSSO 7.6.8 | Fixed | RHSA-2024:1866 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2024:1860 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2024:1861 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2024:1862 |
| Red Hat build of Keycloak 22 | Fixed | RHSA-2024:1867 |
| Red Hat build of Keycloak 22.0.10 | Fixed | RHSA-2024:1868 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-6544
- 2026-10-03 Alias added: GHSA-46c8-635v-68r2
References
Advisory 8
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-6544 · CVE Program
- CVE-2023-6544 · NVD
- FIRST EPSS
- GHSA-46c8-635v-68r2 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-6544 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences