CVE-2024-5967
Keycloak: leak of configured ldap bind credentials through the keycloak admin console
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
2.7
Keycloak: leak of configured ldap bind credentials through the keycloak admin console
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.
- Record
CVE-2024-5967- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
EUVDEUVD-2024-2011
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.
- Record
EUVD-2024-2011- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-c25h-c27q-5qpv
2.7
Keycloak leaks configured LDAP bind credentials through the Keycloak admin console
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
- Record
GHSA-c25h-c27q-5qpv- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
NVD
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.
- Record
CVE-2024-5967- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
OSV
2.7
Keycloak: leak of configured ldap bind credentials through the keycloak admin console
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.
- Record
CVE-2024-5967- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGHSA-c25h-c27q-5qpv
2.7
Keycloak leaks configured LDAP bind credentials through the Keycloak admin console
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
- Record
GHSA-c25h-c27q-5qpv- CVSS 3.1
- 2.7 Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVRHSA-2024:6493
7.1
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 7
- Record
RHSA-2024:6493- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:6494
7.1
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 8
- Record
RHSA-2024:6494- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:6495
7.1
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 9
- Record
RHSA-2024:6495- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.keycloak:keycloak-ldap-federationMaven |
25.0.0 to 25.0.0 | 25.0.1 |
org.keycloak:keycloak-ldap-federationMaven |
through 22.0.11 | 22.0.12 |
org.keycloak:keycloak-ldap-federationMaven |
23.0.0 to 24.0.5 | 24.0.6 |
org.keycloak:keycloak-ldap-federationMaven |
25.0.0 up to 25.0.1 | 25.0.1 |
org.keycloak:keycloak-ldap-federationMaven |
before 22.0.12, plus listed versions 1.0-beta-41.0-final1.0-rc-11.0-rc-21.0.1.Final Show 45 moreShow less1.0.2.Final1.0.3.Final1.0.4.Final1.0.5.Final1.1.0.Beta11.1.0.Beta21.1.0.Final1.1.1.Final1.2.0.Beta11.2.0.CR11.2.0.Final1.3.0.Final1.3.1.Final1.4.0.Final1.5.0-Final1.5.0.Final1.5.1.Final1.6.0.Final1.6.1.Final1.7.0.CR11.7.0.Final1.8.0.Alpha11.8.0.CR11.8.0.CR21.8.0.CR31.8.0.Final1.8.1.Final1.9.0.CR11.9.0.Final1.9.1.Final1.9.2.Final1.9.3.Final1.9.4.Final1.9.5.Final1.9.7.Final1.9.8.Final10.0.010.0.110.0.211.0.011.0.111.0.211.0.312.0.012.0.1 |
22.0.12 |
org.keycloak:keycloak-ldap-federationMaven |
23.0.0 up to 24.0.6, plus listed versions 23.0.123.0.223.0.323.0.423.0.5 Show 8 moreShow less23.0.623.0.724.0.024.0.124.0.224.0.324.0.424.0.5 |
24.0.6 |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el7 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el7sso | 0:18.0.16-1.redhat_00001.1.el7sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el7 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el7sso | 0:18.0.16-1.redhat_00001.1.el7sso |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el8 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el8sso | 0:18.0.16-1.redhat_00001.1.el8sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el8 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el8sso | 0:18.0.16-1.redhat_00001.1.el8sso |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el9sso | 0:18.0.16-1.redhat_00001.1.el9sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 3 CVEs |
before 0:18.0.16-1.redhat_00001.1.el9sso | 0:18.0.16-1.redhat_00001.1.el9sso |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-5967 is a low vulnerability (CVSS 2.7) in Red Hat Build Of Keycloak, published June 18, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.65%, the 51st percentile. Fixed in org.keycloak:keycloak-ldap-federation 25.0.1.
References
access.redhat.com/errata/RHSA-2024:6493
access.redhat.com/errata/RHSA-2024:6494
access.redhat.com/errata/RHSA-2024:6495
access.redhat.com/errata/RHSA-2024:6497
access.redhat.com/errata/RHSA-2024:6499
access.redhat.com/errata/RHSA-2024:6500
Show 28 moreShow less
access.redhat.com/errata/RHSA-2024:6501
access.redhat.com/security/cve/CVE-2024-5967
bugzilla.redhat.com/show_bug.cgi?id=2292200
github.com/keycloak/keycloak/security/advisories/GHSA-c25h-c27q-5qpv
nvd.nist.gov/vuln/detail/CVE-2024-5967
github.com/keycloak/keycloak/issues/30434
github.com/keycloak/keycloak/commit/0d0530046b9cb4b0d74d2fdefc9bd04f1d20cac0
github.com/keycloak/keycloak/commit/1f56a9e48bf96c3bcb18dfc6cd93e3dd16f281f1
github.com/keycloak/keycloak/commit/bde8568d4174a7072f7c7bb507d2c7d05824b1a6
github.com/advisories/GHSA-c25h-c27q-5qpv
access.redhat.com/downloads/content/package-browser
catalog.redhat.com/software/containers
github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5967.json
github.com/keycloak/keycloak
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2276761
bugzilla.redhat.com/show_bug.cgi?id=2302064
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6493.json
access.redhat.com/security/cve/CVE-2024-4629
cve.org/CVERecord?id=CVE-2024-4629
nvd.nist.gov/vuln/detail/CVE-2024-4629
cve.org/CVERecord?id=CVE-2024-5967
access.redhat.com/security/cve/CVE-2024-7341
cve.org/CVERecord?id=CVE-2024-7341
nvd.nist.gov/vuln/detail/CVE-2024-7341
github.com/advisories/GHSA-j76j-rqwj-jmvv
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6494.json
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6495.json
Left out here: 100 versions. The JSON record has them.