Keycloak: Impersonation and lockout possible through incorrect handling of email trust
Impersonation and lockout are possible due to email trust not being handled correctly in Keycloak. Since the verified state is not reset when the email changes, it is possible for users to shadow others with the same email and lock out or impersonate them.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.keycloak:keycloak-core | < 22.0.1 | 22.0.1 |
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c7xw-p58w-h6fj
- https://github.com/keycloak/keycloak/commit/87a50d3ba790b049e436c9925874f9b418af7988
- https://access.redhat.com/security/cve/CVE-2023-0105
- https://bugzilla.redhat.com/show_bug.cgi?id=2158910
- https://github.com/keycloak/keycloak
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L- Weakness (CWE)
CWE-287, CWE-841- Platform
- Java / Kotlin (Maven)
- Package
org.keycloak:keycloak-core- Disclosed
- 18.07.2023
- Updated
- 11.10.2026 11:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-c7xw-p58w-h6fj - CC BY 4.0
Vulnerability history: org.keycloak:keycloak-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 49
- First → latest
- 10.2018 02.2025
- Without a fix
- 5
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 14
- Medium 31
- Low 1
Disclosures per year
- 2018: 9
- 2019: 4
- 2020: 4
- 2021: 5
- 2022: 17
- 2023: 4
- 2024: 5
- 2025: 1
- 2026: 0
-
Keycloak: Impersonation and lockout possible through incorrect handling of email trust this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.