Low

Keycloak leaks configured LDAP bind credentials through the Keycloak admin console

  • Disclosed: 21.06.2024
  • Updated: 11.10.2026 13:20

Impact

The LDAP testing endpoint allows to change the Connection URL independently of and without having to re-enter the currently configured LDAP bind credentials. An attacker with admin access (permission manage-realm) can 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/compromised a user with sufficient privileges can leak domain credentials and can now attack the domain.

Acknowledgements

Special thanks to Simon Wessling for reporting this issue and helping us improve our project

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.keycloak:keycloak-ldap-federation >= 25.0.0, < 25.0.1, < 22.0.12, >= 23.0.0, < 24.0.6 25.0.1, 22.0.12, 24.0.6

References

CVSS score 2.7/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
Weakness (CWE)
CWE-276
Platform
Java / Kotlin (Maven)
Package
org.keycloak:keycloak-ldap-federation
Disclosed
21.06.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-c25h-c27q-5qpv - CC BY 4.0

Vulnerability history: org.keycloak:keycloak-ldap-federation

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
11.2023 05.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 3
  • Low 2

Disclosures per year

  1. 2023: 1
  2. 2024: 1
  3. 2025: 2
  4. 2026: 1
  1. Medium · 5.5 CVE-2025-13467 >= 26.3.0, < 26.4.6, < 26.2.11 26.4.6, 26.2.11
  2. Medium · 5.4 CVE-2025-0604 >= 26.1.0, < 26.1.3, < 26.0.10 26.1.3, 26.0.10
  3. Keycloak leaks configured LDAP bind credentials through the Keycloak admin console this entry
    Low · 2.7 CVE-2024-5967 >= 25.0.0, < 25.0.1, < 22.0.12, >= 23.0.0, < 24.0.6 25.0.1, 22.0.12, 24.0.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.