CVE-2024-5967:
Keycloak leaks configured LDAP bind credentials through the Keycloak admin console
2.7
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
6/21/2024
Updated
7/1/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.keycloak:keycloak-ldap-federation | maven | = 25.0.0 | 25.0.1 |
org.keycloak:keycloak-ldap-federation | maven | <= 22.0.11 | 22.0.12 |
org.keycloak:keycloak-ldap-federation | maven | >= 23.0.0, <= 24.0.5 | 24.0.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the pre-patch implementation of buildLDAPConfig, which fetched stored credentials (via realm.getComponent()) when ComponentRepresentation.SECRET_VALUE was provided, but didn't verify if the test request's connection URL/bind DN matched the original component's configuration. The patch added URI and DN comparisons (Objects.equals checks) to prevent credential reuse when these parameters are altered. The function's pre-patch behavior directly enabled the credential leak described in CVE-2024-5967.