CVE-2021-3754
MEDIUM 5.3CVSS 3.1Keycloak's improper input validation allows using email as username
A flaw was found in keycloak where an attacker is able to register himself with the username same as the email ID of any existing user. This may cause trouble in getting password recovery email in case the user forgets the password.
- Published
- 26 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-670
- Also known as
- GHSA-4vc8-pg5c-vg4x
- Sources
- NVDJSONOSV GHSA-4vc8-pg5c-vg4xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | Maven | org.keycloak:keycloak-services | < 24.0.1 | 24.0.1 |
References
- https://access.redhat.com/security/cve/CVE-2021-3754 · Vendor Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=1999196 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-4vc8-pg5c-vg4x · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3754 · ADVISORY
- https://github.com/keycloak/keycloak/commit/f9708037383aa98741e4850447de64dc4a0d4b4e · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Aug 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jun 2024)