medium5.3
CVE-2021-3754
Keycloak's improper input validation allows using email as username
Impact
Keycloak allows the use of email as a username and doesn't check that an account with this email already exists. That could lead to the unability to reset/login with email for the user. This is caused by usernames being evaluated before emails.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-services | < 24.0.1 | 24.0.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Redhat | Keycloak | All versions |
| Redhat | Single Sign-On | Version 7.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/security/cve/CVE-2021-3754
- https://bugzilla.redhat.com/show_bug.cgi?id=1999196
- https://github.com/advisories/GHSA-4vc8-pg5c-vg4x
- https://github.com/keycloak/keycloak/security/advisories/GHSA-4vc8-pg5c-vg4x
- https://github.com/keycloak/keycloak/commit/f9708037383aa98741e4850447de64dc4a0d4b4e
- https://nvd.nist.gov/vuln/detail/CVE-2021-3754