Vulnerability · Published Jun 18, 2024 · Assigned by redhat
CVE-2024-5967Keycloak: leak of configured ldap bind credentials through the keycloak admin console
Low 2.7
In plain English
A low-severity incorrect default permissions in keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in Keycloak. The LDAP testing endpoint allows changing the Connection URL independently without re-entering the currently configured LDAP bind credentials. This flaw allows an attacker with admin access (permission manage-realm) to change the LDAP host URL ("Connection URL") to a machine they control. The Keycloak server will connect to the attacker's host and try to authenticate with the configured credentials, thus leaking them to the attacker. As a consequence, an attacker who has compromised the admin console or compromised a user with sufficient privileges can leak domain credentials and attack the domain.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-ldap-federation | 25.0.1 | GHSA-c25h-c27q-5qpv |
| Maven | org.keycloak:keycloak-ldap-federation | 22.0.12 | GHSA-c25h-c27q-5qpv |
| Maven | org.keycloak:keycloak-ldap-federation | 24.0.6 | GHSA-c25h-c27q-5qpv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| keycloak | 0 – before 22.0.1223.0.0 – before 24.0.625.0.0 – before 25.0.1 | |
| Red Hat | Red Hat Build of Keycloak | see references |
| Red Hat | Red Hat build of Keycloak 22 | see references |
| Red Hat | Red Hat build of Keycloak 22 | see references |
| Red Hat | Red Hat build of Keycloak 22 | see references |
| Red Hat | Red Hat Single Sign-On 7 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | see references |
| Red Hat | RHEL-8 based Middleware Containers | see references |
Weakness: CWE-276 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
References
- RHSA-2024:6493 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6494 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6495 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6497 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6499 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6500 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:6501 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-5967 vdb-entry, x_refsource_REDHAT
- RHBZ#2292200 issue-tracking, x_refsource_REDHAT