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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | keycloak | < 22.0.12, 23.0.0 – < 24.0.6, 25.0.0 – < 25.0.1 | 22.0.12 |
| Red Hat | Red Hat Build of Keycloak | — | — |
| Red Hat | Red Hat build of Keycloak 22 | — | — |
| Red Hat | Red Hat Single Sign-On 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | — |
| Red Hat | RHEL-8 based Middleware Containers | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.16-1.redhat_00001.1.el7sso | RHSA-2024:6495, RHSA-2024:6494, RHSA-2024:6493 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-ldap-federation | >= 25.0.0, < 25.0.1 | 25.0.1 | GHSA-c25h-c27q-5qpv |
| Maven | org.keycloak:keycloak-ldap-federation | < 22.0.12 | 22.0.12 | GHSA-c25h-c27q-5qpv |
| Maven | org.keycloak:keycloak-ldap-federation | >= 23.0.0, < 24.0.6 | 24.0.6 | GHSA-c25h-c27q-5qpv |
Advisories 4
- RHSA-2024:6495 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:6493 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:6494 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- WID-SEC-2024-1403 Keycloak: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Sep 9, 2024
References
- RHSA-2024:6493 vendor-advisory
- RHSA-2024:6494 vendor-advisory
- RHSA-2024:6495 vendor-advisory
- RHSA-2024:6497 vendor-advisory
- RHSA-2024:6499 vendor-advisory
- RHSA-2024:6500 vendor-advisory
- RHSA-2024:6501 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-5967 vdb-entry
- RHBZ#2292200 issue-tracking