CVE-2023-2422 Keycloak: oauth client impersonation
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.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 21.1.2 |
org.keycloak:keycloak-services Maven | All versions | 21.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.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-3qh5-qqj2-c78f.