VDB
Sign up
HIGH8.8

GHSA-5q66-v53q-pm35

Keycloak vulnerable to Plaintext Storage of User Password

Quick fix

GHSA-5q66-v53q-pm35 — org.keycloak:keycloak-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>22.0.3</version> for org.keycloak:keycloak-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.keycloak:keycloak-core
Introduced in: 22.0.2Fixed in: 22.0.3
Fix# pom.xml: bump <version>22.0.3</version> for org.keycloak:keycloak-core

References