{"id":"CVE-2022-2232","aliases":["CVE-2022-2232","GHSA-8hc5-rmgf-qx6p"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak: ldap injection on username input","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A flaw was found in the Keycloak package. This flaw allows an attacker to benefit from an LDAP query and access existing usernames in the server.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una falla en el paquete Keycloak que permite a un atacante utilizar una inyección LDAP para eludir la búsqueda de nombre de usuario o potencialmente realizar otras acciones maliciosas.","source":"nvd"}],"published":"2023-11-29T21:33:07.000Z","modified":"2026-06-17T04:41:32.013Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-20","CWE-90"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak-core","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"23.0.1"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-ldap-federation","purl":"pkg:maven/org.keycloak/keycloak-ldap-federation","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"23.0.1"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:0094","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:0095","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:0096","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-2232","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2096994","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-8hc5-rmgf-qx6p","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/4252e394cf725b16f7e4e19aa32b03fd3fe13fde","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Konstantin Goldenberg (VHV) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-11-14T17:06:36.332Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2232","url":"https://www.cve.org/CVERecord?id=CVE-2022-2232","licence":"CVE Terms of Use","modified":"2024-11-14T17:06:46.384Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8hc5-rmgf-qx6p","url":"https://github.com/advisories/GHSA-8hc5-rmgf-qx6p","licence":"CC-BY-4.0","modified":"2024-12-04T05:36:37.532Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2232","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2232","licence":"Public domain","modified":"2026-06-17T04:41:32.013Z"}],"updatedAt":"2026-11-25T22:58:20.050Z","epss":{"score":0.00803,"percentile":0.57907,"date":"2026-12-02T12:00:21.000Z"}}