GitHub Advisoryadvisory · Maven

GHSA-5q66-v53q-pm35 Keycloak vulnerable to Plaintext Storage of User Password

HIGH Published 2023-09-12 Modified 2023-09-12 Official page ↗
Aliases
CVE-2023-4918
Ecosystem
Maven
Packages
org.keycloak:keycloak-core
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-256, CWE-319
Reviewed
2023-09-12

Affected packages

• Maven org.keycloak:keycloak-core: >= 22.0.2, < 22.0.3 → fixed in 22.0.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2023-4918 A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. vulnerability

Weakness · CWE (2)

  • CWE-256 Plaintext Storage of a Password weakness
  • CWE-319 Cleartext Transmission of Sensitive Information weakness

References