CVE-2021-3754 Keycloak's improper input validation allows using email as username

Medium 5.3 Published Updated

Attackers can register with usernames matching existing user emails, potentially disrupting password recovery processes for legitimate users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3754?

CVE-2021-3754 is a medium-severity vulnerability in Redhat Keycloak, published on 26 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2021-3754?

2 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 2 products.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions24.0.1
org.keycloak:keycloak-services MavenAll versions24.0.1

Products include Redhat Keycloak, Redhat Single Sign-On.

How do I fix CVE-2021-3754?

Upgrade org.keycloak:keycloak-services to 24.0.1 or later.

Is CVE-2021-3754 being exploited?

There is no known exploitation of CVE-2021-3754 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-4vc8-pg5c-vg4x.

Is CVE-2021-3754 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free