CVE-2023-4918: Plaintext storage of user password

Published Sep 12, 2023
·
Updated

A flaw was discovered in Keycloak Core package. When a user registers itself through registration flow, the "password" and "password-confirm" field from the form will occur as regular attributes in the users attributes. The password is also created, but the user attributes must not be there. This way, any entities (all users and clients with proper rights/roles) are able to retrieve the users passwords in clear-text.

Impact Passwords for self-registered users are stored as cleartext attributes associated with the user.

Mitigation Disable self-registration for users in all realms until patched.

Other sources

A flaw was discovered in Keycloak Core package. When a user registers itself through registration flow, the "password" and "password-confirm" field from the form will occur as regular attributes in the users attributes. The password is also created, but the user attributes must not be there. This way, any entities (all users and clients with proper rights/roles) are able to retrieve the users passwords in clear-text.

A malicious user with minimal access reading other users attributes could have access to their password and hence jeopardize the environment.

This shall only affect Keycloak 22.0.2. While Keycloak 22.0.1 is not affected.

Red Hat

A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. When a user registers itself through registration flow, the "password" and "password-confirm" field from the form will occur as regular user attributes. All users and clients with proper rights and roles are able to read users attributes, allowing a malicious user with minimal access to retrieve the users passwords in clear text, jeopardizing their environment.

MITRE

Affected Software

3 affected componentsFixes available
maven/org.keycloak:keycloak-core=22.0.2
22.0.3
redhat/keycloak<22.0.3
22.0.3
redhat Keycloak=22.0.2

Event History

Sep 12, 2023
CVE Published
via MITRE·07:24 PM
Data Sourced
via MITRE·07:24 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
09:10 PM

Frequently Asked Questions

1

What is CVE-2023-4918?

CVE-2023-4918 is a vulnerability found in the Keycloak Core package, specifically in org.keycloak.userprofile.

2

What is the severity of CVE-2023-4918?

CVE-2023-4918 has a severity level of 8.8 (high).

3

How does CVE-2023-4918 impact Keycloak?

CVE-2023-4918 allows user attributes to contain the 'password' and 'password-confirm' fields, which can lead to unauthorized access.

4

How can I fix CVE-2023-4918?

To fix CVE-2023-4918, update to Keycloak version 22.0.3 or higher.

5

Where can I find more information about CVE-2023-4918?

You can find more information about CVE-2023-4918 in the following references: [1] [2] [3].

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