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.

Severity (CVSS 3.1)2.7Low
Exploit odds (30 days)0.6%top 48.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.keycloak:keycloak-ldap-federation25.0.1GHSA-c25h-c27q-5qpv
Mavenorg.keycloak:keycloak-ldap-federation22.0.12GHSA-c25h-c27q-5qpv
Mavenorg.keycloak:keycloak-ldap-federation24.0.6GHSA-c25h-c27q-5qpv

Affected products (as reported)

VendorProductVersions
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