CVE-2023-6544 Keycloak: authorization bypass

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenFrom 23.0.024.0.3
org.keycloak:keycloak-services MavenFrom 23.0.024.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.

Is CVE-2023-6544 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free