{"id":"CVE-2022-2232","published":"2024-11-14T14:51:14Z","modified":"2024-11-14T17:06:46Z","title":"Keycloak: ldap injection on username input","vendor":"Red Hat","product":"Red Hat Single Sign-On 7","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00651,"percentile":0.52145,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:0094","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:0095","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:0096","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-2232","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2096994","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":10.43},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","versions":["all versions"]}],"workarounds":{"items":["This flaw requires a misconfiguration of the \"UUID LDAP Attribute\" values. When they are set to the standard entryUUID, objectGUID or nsuniqueid Keycloak is not vulnerable."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-14T17:06:36.332577Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-ldap-federation","vulnerableRanges":["<23.0.1"],"patched":["23.0.1"],"from":["GHSA-8hc5-rmgf-qx6p"],"provenance":"source"},{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","vulnerableRanges":["<23.0.1"],"patched":["23.0.1"],"from":["GHSA-8hc5-rmgf-qx6p"],"provenance":"source"}],"summary":{"text":"A flaw in the Keycloak component of Red Hat Single Sign-On 7 allows LDAP injection through the username input, caused by improper input validation. An unauthenticated remote attacker, without any user interaction, can exploit it over the network to bypass the username lookup or potentially perform other malicious actions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:30Z"},"euvd":{"id":"EUVD-2023-2922","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-single-sign-on-7-cve-2022-2232","children":[{"from":"CVE-2022-2232","to":"CVE-2026-4633","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/authentication/authenticators/browser/AbstractUsernameFormAuthenticator.java"],"commits":["https://github.com/keycloak/keycloak/commit/4252e394cf725b16f7e4e19aa32b03fd3fe13fde","https://github.com/keycloak/keycloak/commit/b137016cc6dcfd9f59b2aa2e6d73af8b0ebf7c6e","https://github.com/keycloak/keycloak/commit/b4558a874fa79341404ae4d2d8f240f22bfed340"],"basis":"rarely changed file"}]}]}}