CVE-2022-2232 Keycloak: ldap injection on username input
Attackers can inject LDAP queries via username input to bypass authentication or access sensitive data in Keycloak.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-2232?
CVE-2022-2232 is a high-severity vulnerability in Red Hat Single Sign-On 7, published on 14 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in the Keycloak package. This flaw allows an attacker to utilize an LDAP injection to bypass the username lookup or potentially perform other malicious actions.
Weakness: CWE-20
Which versions are affected by CVE-2022-2232?
4 open source packages ship an affected version, including org.keycloak:keycloak-ldap-federation and org.keycloak:keycloak-services.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-ldap-federation Maven | All versions | 23.0.1 |
org.keycloak:keycloak-ldap-federation Maven | All versions | 23.0.1 |
org.keycloak:keycloak-services Maven | All versions | 23.0.1 |
org.keycloak:keycloak-services Maven | All versions | 23.0.1 |
How do I fix CVE-2022-2232?
Upgrade org.keycloak:keycloak-ldap-federation to 23.0.1 or later.
Is CVE-2022-2232 being exploited?
There is no known exploitation of CVE-2022-2232 in the wild and no public exploit code.
Sources
Also known as GHSA-8hc5-rmgf-qx6p.