CVE-2023-4918
highpriority · track · 35OT risk · elevatedEPSS 0.006 · 47 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2312Keycloak: Schwachstelle ermöglicht Offenlegung von InformationenDeutsch2023-09-12csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um Informationen offenzulegen.
- GHSA-5q66-v53q-pm35Keycloak vulnerable to Plaintext Storage of User Password2023-09-12ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2023-4918cnnvd
- https://access.redhat.com/security/cve/cve-2023-4918cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2238588cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-4918/cnnvd
- https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2023-4918cnnvd
- https://www.keycloak.org/downloadsPatchcnnvd
- https://access.redhat.com/security/cve/CVE-2023-4918enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan