CVE-2023-2422 Keycloak: oauth client impersonation

Medium 5.5 Published Updated

Attackers with valid certificates can impersonate other OAuth clients in mTLS-enabled Keycloak servers, accessing unauthorized data.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2422?

CVE-2023-2422 is a medium-severity authentication bypass vulnerability in Redhat Keycloak, published on 4 Oct 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A flaw was found in Keycloak. A Keycloak server configured to support mTLS authentication for OAuth/OpenID clients does not properly verify the client certificate chain. A client that possesses a proper certificate can authorize itself as any other client, therefore, access data that belongs to other clients.

Weakness: CWE-295

Which versions are affected by CVE-2023-2422?

2 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 3 products.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions21.1.2
org.keycloak:keycloak-services MavenAll versions21.1.2

Products include Redhat Keycloak, Redhat Openshift Container Platform, Redhat Single Sign-On.

How do I fix CVE-2023-2422?

Upgrade org.keycloak:keycloak-services to 21.1.2 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-2422 being exploited?

There is no known exploitation of CVE-2023-2422 in the wild and no public exploit code.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-3qh5-qqj2-c78f.

Is CVE-2023-2422 in your software?

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

Check your SBOMs for free