Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References