Skip to main content
← All vulnerabilities
CVE-2024-5967GHSA-C25H-C27Q-5QPV

Keycloak: leak of configured ldap bind credentials through the keycloak admin console

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 22.0.12, 24.0.6, 25.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • keycloak

    fixed in 22.0.12; From 23.0.0 · fixed in 24.0.6; From 25.0.0 · fixed in 25.0.1

  • keycloak-core

    Version range not reported

  • rhbk/keycloak-operator-bundle

    Version range not reported

  • rhbk/keycloak-rhel9

    Version range not reported

  • rhbk/keycloak-rhel9-operator

    Version range not reported

  • rh-sso7-keycloak

    Version range not reported

  • rh-sso7-keycloak

    Version range not reported

  • rh-sso7-keycloak

    Version range not reported

  • rh-sso7-keycloak

    Version range not reported

  • rh-sso-7/sso76-openshift-rhel8

    Version range not reported

  • org.keycloak:keycloak-ldap-federationMaven

    From 25.0.0 · fixed in 25.0.1

  • org.keycloak:keycloak-ldap-federationMaven

    fixed in 22.0.12

  • org.keycloak:keycloak-ldap-federationMaven

    From 23.0.0 · fixed in 24.0.6

References 9

access.redhat.com

bugzilla.redhat.com