CVE-2024-5967
Fixed in a distro release EPSS <1%CVSS 2.7
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.
Products: Red Hat Build of Keycloak, Red Hat build of Keycloak 22, Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7, Red Hat Single Sign-On 7.6 for RHEL 8, Red Hat Single Sign-On 7.6 for RHEL 9, Red Hat RHEL-8 based Middleware Containers
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Maven | org.keycloak:keycloak-ldap-federation | 25.0.1 |
| Maven | org.keycloak:keycloak-ldap-federation | 22.0.12 |
| Maven | org.keycloak:keycloak-ldap-federation | 24.0.6 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | keycloak | 25.0.1-r0 |
| Chainguard | keycloak | 25.0.0-r0 |
| Chainguard | keycloak-bitnami-compat | 25.0.0-r0 |
| Chainguard | keycloak-bitnami-compat | 25.0.1-r0 |
| Chainguard | keycloak-bitnami-fips | 25.0.0-r0 |
| Chainguard | keycloak-compat | 25.0.1-r0 |
| Chainguard | keycloak-compat | 25.0.0-r0 |
| Chainguard | keycloak-fips | 25.0.0-r0 |
| Chainguard | keycloak-fips-bitnami-compat | 25.0.0-r0 |
| Chainguard | keycloak-fips-policy-140-2 | 25.0.0-r0 |
| Chainguard | keycloak-fips-policy-140-3 | 25.0.0-r0 |
| Chainguard | keycloak-iamguarded-compat | 25.0.1-r0 |
| Chainguard | keycloak-iamguarded-fips | 25.0.0-r0 |
| Chainguard | keycloak-operator | 25.0.0-r0 |
| Chainguard | keycloak-operator-compat | 25.0.0-r0 |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak | 0:18.0.16-1.redhat_00001.1.el9sso |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak | 0:18.0.16-1.redhat_00001.1.el8sso |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak | 0:18.0.16-1.redhat_00001.1.el7sso |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak-server | 0:18.0.16-1.redhat_00001.1.el8sso |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak-server | 0:18.0.16-1.redhat_00001.1.el7sso |
| Red Hat red hat single sign on 7.6 | rh-sso7-keycloak-server | 0:18.0.16-1.redhat_00001.1.el9sso |
| Wolfi | keycloak | 25.0.1-r0 |
| Wolfi | keycloak | 25.0.0-r0 |
| Wolfi | keycloak-bitnami-compat | 25.0.0-r0 |
| Wolfi | keycloak-bitnami-compat | 25.0.1-r0 |
| Wolfi | keycloak-compat | 25.0.0-r0 |
| Wolfi | keycloak-compat | 25.0.1-r0 |
| Wolfi | keycloak-iamguarded-compat | 25.0.1-r0 |
| Wolfi | keycloak-operator | 25.0.0-r0 |
| Wolfi | keycloak-operator-compat | 25.0.0-r0 |