CVE-2023-6544 Keycloak: authorization bypass
Attackers can bypass authorization checks to register dynamic clients due to a permissive regex, requiring specific TrustedDomain configurations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-6544?
CVE-2023-6544 is a medium-severity missing authorization vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 25 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-625
Which versions are affected by CVE-2023-6544?
4 open source packages ship an affected version, including org.keycloak:keycloak-services.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 22.0.10 |
org.keycloak:keycloak-services Maven | All versions | 22.0.10 |
org.keycloak:keycloak-services Maven | From 23.0.0 | 24.0.3 |
org.keycloak:keycloak-services Maven | From 23.0.0 | 24.0.3 |
How do I fix CVE-2023-6544?
Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 22.0.10 or 24.0.3.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2023-6544 being exploited?
There is no known exploitation of CVE-2023-6544 in the wild and no public exploit code.
Sources
Also known as GHSA-46c8-635v-68r2.