CVE-2024-1722: Keycloak-core: dos via account lockout

Published Feb 21, 2024
·
Updated

Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-cq42-vhv7-xr7p. This link is maintained to preserve external references.

Original Description A flaw was found in Keycloak. In certain conditions, this issue may allow a remote unauthenticated attacker to block other accounts from logging in.

Other sources

Technical Details

Product: keycloak

Product Version: 23.0.5 (Latest release)

Platform: Linux (podman - in prod config)

Summary:

In any realm set with "User (Self) registration" a user that is registered with a username in email format can be "locked out" (denied from logging in) using his username.

Impact:

A successful exploit of the issue will prevent the specific user from logging in to his account using his username.

Steps to reproduce: (see the attached demo)

1. Assuming a realm is configured for "User registration"

1.1 Note: The "Verify email" and "Forgot password" settings can be activated.

2. Set up a client in the relevant Realm.

3. Register a user to the realm (using a username in an email format, the username and email should different)

3.1 Note: This scenario can also happen if a user changes his email at some point in time.

3.2 We will refer to this user as the victim.

3.3 Verify the user email (using the received email)

4. Login using the username and password.

4.1 Note: so far, all good.

5. Register a new user - set the attacker email address as the previous username (victim) (can use any username).

5.1 Assumption 2: The attacker obtained the victim's username.

5.2 Note: the attacker does not need access to the email, even when the "Verify email" option is set.

6. At this point the victim cannot access his account using his username.

6.1 Note: in the case where the "Forgot password" flow is set, the user can "log in" using that flow (once)

6.2 The victim cannot log in using his username (even after a password reset).

6.3 The victim can log in using his (registered) email.

Red Hat

Affected Software

3 affected componentsFixes available
maven/org.keycloak:keycloak-services<24.0.0
24.0.0
maven/org.keycloak:keycloak-core<=23.0.5
24.0.0
redhat Keycloak=23.0.5

Event History

Feb 21, 2024
Data Sourced
via Red Hat·08:13 PM
DescriptionSeverityAffected Software
Feb 27, 2024
CVE Published
via MITRE·05:39 PM
Data Sourced
via MITRE·05:39 PM
DescriptionSeverityWeakness
Feb 29, 2024
Data Sourced
via NVD·01:43 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:43 AM
Affected Software
Advisory Published
via GitHub·03:33 AM
Dec 20, 2024
Withdrawn
via GitHub·05:54 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-1722?

The severity of CVE-2024-1722 is determined to be high due to the potential for remote unauthenticated access under specific conditions.

2

How do I fix CVE-2024-1722?

To mitigate CVE-2024-1722, users should upgrade Keycloak to version 24.0.0 or later.

3

Which versions of Keycloak are affected by CVE-2024-1722?

CVE-2024-1722 affects Keycloak versions up to and including 23.0.5.

4

Is there a known exploit for CVE-2024-1722?

As of now, there are no public reports indicating that CVE-2024-1722 is actively exploited in the wild.

5

What components of Keycloak are affected by CVE-2024-1722?

CVE-2024-1722 specifically impacts the keycloak-services and keycloak-core packages of Keycloak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203