# CVE-2022-2232: Keycloak vulnerable to LDAP Injection on UsernameForm Login

Source: https://junglewise.ai/threats/cve-2022-2232-keycloak-vulnerable-to-ldap-injection-on-usernameform-login  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-11-29  
License: CC BY 4.0 with a link back

CVE-2022-2232 · Severity: info · Published 2023-11-29

Keycloak vulnerable to LDAP Injection on UsernameForm Login

Technologies: [org.keycloak:keycloak-ldap-federation (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-ldap-federation), [org.keycloak:keycloak-services (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-services). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-2232 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-2232 being exploited in the wild.

**How severe is CVE-2022-2232?** Informational severity, published 29 November 2023.

**Which products and versions are affected?** org.keycloak:keycloak-ldap-federation (Maven) ECOSYSTEM:introduced=0,fixed=23.0.1; org.keycloak:keycloak-services (Maven) ECOSYSTEM:introduced=0,fixed=23.0.1.

**Is there a fix for CVE-2022-2232?** Yes. org.keycloak:keycloak-ldap-federation (Maven): upgrade to 23.0.1 or later; org.keycloak:keycloak-services (Maven): upgrade to 23.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-2232?** Check whether you run org.keycloak:keycloak-ldap-federation (Maven) or org.keycloak:keycloak-services (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.keycloak:keycloak-ldap-federation (Maven): upgrade to 23.0.1 or later

  ```sh
  # set org.keycloak:keycloak-ldap-federation to 23.0.1 in your pom.xml or build.gradle
  ```

- org.keycloak:keycloak-services (Maven): upgrade to 23.0.1 or later

  ```sh
  # set org.keycloak:keycloak-services to 23.0.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.keycloak:keycloak-ldap-federation (Maven) ECOSYSTEM:introduced=0,fixed=23.0.1
- org.keycloak:keycloak-services (Maven) ECOSYSTEM:introduced=0,fixed=23.0.1

## Identifiers

- CVE-2022-2232
- GHSA-8hc5-rmgf-qx6p

## Related threats

- [Keycloak unauthenticated account takeover via reset-credentials bypass](https://junglewise.ai/threats/cve-2026-18963-siemens-industrial-edge-management-authentication-bypass-in)
- [Duplicate Advisory: Authentication bypass via jwt algorithm confusion](https://junglewise.ai/threats/duplicate-advisory-authentication-bypass-via-jwt-algorithm-confusion-40489dee)
- [Keycloak JWT algorithm confusion in JWT Authorization Grant flow](https://junglewise.ai/threats/cve-2026-11800-keycloak-jwt-algorithm-confusion-in-jwt-authorization-grant-flow)
- [Duplicate Advisory: Keycloak vulnerable to authorization bypass via incorrect uri comparison](https://junglewise.ai/threats/duplicate-advisory-keycloak-vulnerable-to-authorization-bypass-via-009d6a49)
- [Duplicate Advisory: Keycloak vulnerable to cross-site scripting (xss) via case-insensitive uri validation bypass](https://junglewise.ai/threats/duplicate-advisory-keycloak-vulnerable-to-cross-site-scripting-xss-via-1687acae)
