# CVE-2024-5967: Keycloak: leak of configured ldap bind credentials through the keycloak admin console

- Severity: Low 2.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 60% of CVEs (2026-11-30)
- Published: 2024-06-18T12:05:39.289Z
- Modified: 2026-09-10T03:50:15.260Z
- Also known as: GHSA-c25h-c27q-5qpv
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak: before 22.0.12; from 23.0.0 before 24.0.6; from 25.0.0 before 25.0.1
- keycloak-core: no versions given
- rhbk/keycloak-operator-bundle: no versions given (not affected: from 22.0.12-1 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 22-17 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 22-20 before *)
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.16-1.redhat_00001.1.el7sso before *; from 0:18.0.16-1.redhat_00001.1.el8sso before *; from 0:18.0.16-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-52 before *)
- org.keycloak:keycloak-ldap-federation (Maven): from 25.0.0 before 25.0.1; before 22.0.12; from 23.0.0 before 24.0.6

## Every score

- redhat: 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`
- GitHub: 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`

## References

- <https://access.redhat.com/errata/RHSA-2024:6493> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6494> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6495> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6497> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6499> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6500> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:6501> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2024-5967> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2292200> (issue-tracking, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-c25h-c27q-5qpv> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5967> (advisory)
- <https://github.com/keycloak/keycloak/issues/30434> (web)
- <https://github.com/keycloak/keycloak/commit/0d0530046b9cb4b0d74d2fdefc9bd04f1d20cac0> (web)
- <https://github.com/keycloak/keycloak/commit/1f56a9e48bf96c3bcb18dfc6cd93e3dd16f281f1> (web)
- <https://github.com/keycloak/keycloak/commit/bde8568d4174a7072f7c7bb507d2c7d05824b1a6> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2024-5967](https://www.cve.org/CVERecord?id=CVE-2024-5967), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-c25h-c27q-5qpv](https://github.com/advisories/GHSA-c25h-c27q-5qpv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-5967](https://nvd.nist.gov/vuln/detail/CVE-2024-5967), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5967 · Whole record: https://cve.day/CVE-2024-5967.json · Rebuilt by cve.day 2026-11-25T22:58:41.975Z
