Keycloak: leak of configured ldap bind credentials through the keycloak admin console
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak | before 22.0.12; 23.0.0 to before 24.0.6; 25.0.0 to before 25.0.1 | 22.0.12, 24.0.6, 25.0.1 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22.0.12-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-17 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-20 | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | 18.0.16-1.redhat_00001.1.el7sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | 18.0.16-1.redhat_00001.1.el8sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | 18.0.16-1.redhat_00001.1.el9sso | Patch available | CNA |
| Red Hat | RHEL-8 based Middleware Containers | — | 7.6-52 | Patch available | CNA |
| — | org.keycloak:keycloak-ldap-federation (Maven) | 25.0.0 to before 25.0.1 | 25.0.1 | Patch available | GHSA-c25h-c27q-5qpv |
| — | org.keycloak:keycloak-ldap-federation (Maven) | before 22.0.12 | 22.0.12 | Patch available | GHSA-c25h-c27q-5qpv |
| — | org.keycloak:keycloak-ldap-federation (Maven) | 23.0.0 to before 24.0.6 | 24.0.6 | Patch available | GHSA-c25h-c27q-5qpv |
- keycloak Vendor— Affected before 22.0.12; 23.0.0 to before 24.0.6; 25.0.0 to before 25.0.1 Fixed in 22.0.12, 24.0.6, 25.0.1 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.12-1 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-17 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-20 Patch available CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el7sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el8sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el9sso Patch available CNA
- RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-52 Patch available CNA
- org.keycloak:keycloak-ldap-federation (Maven) Vendor— Affected 25.0.0 to before 25.0.1 Fixed in 25.0.1 Patch available GHSA-c25h-c27q-5qpv
- org.keycloak:keycloak-ldap-federation (Maven) Vendor— Affected before 22.0.12 Fixed in 22.0.12 Patch available GHSA-c25h-c27q-5qpv
- org.keycloak:keycloak-ldap-federation (Maven) Vendor— Affected 23.0.0 to before 24.0.6 Fixed in 24.0.6 Patch available GHSA-c25h-c27q-5qpv
CPE names CNA · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:build_keycloak:22 | 22 | — | Red Hat |
| cpe:/a:redhat:build_keycloak:22::el9 | 22 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6 | 7.6 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el7 | 7.6 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el8 | 7.6 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6::el9 | 7.6 | — | Red Hat |
| cpe:/a:redhat:rhosemc:1.0::el8 | 1.0 | — | Red Hat |
- cpe:/a:redhat:build_keycloak:22 Versions 22 — ·Red Hat
- cpe:/a:redhat:build_keycloak:22::el9 Versions 22 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el7 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el8 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6::el9 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:rhosemc:1.0::el8 Versions 1.0 — ·Red Hat
Remediation
- Fix · CNA keycloak Fixed in 22.0.12, 24.0.6, 25.0.1
- Fix · GHSA-c25h-c27q-5qpv org.keycloak:keycloak-ldap-federation (Maven) Fixed in 25.0.1 Advisory →
- Fix · GHSA-c25h-c27q-5qpv org.keycloak:keycloak-ldap-federation (Maven) Fixed in 22.0.12 Advisory →
- Fix · GHSA-c25h-c27q-5qpv org.keycloak:keycloak-ldap-federation (Maven) Fixed in 24.0.6 Advisory →
Red Hat 7 advisories
- RHSA-2024:6497 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 for OpenShift image enhancement update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
- RHSA-2024:6495 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.16-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.16-1.redhat_00001.1.el9sso
- RHSA-2024:6500 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.12 Images Update
- Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
Show 4 more Red Hat advisories
- RHSA-2024:6494 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.16-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.16-1.redhat_00001.1.el8sso
- RHSA-2024:6501 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.12 Update
- Red Hat Build of Keycloak
- RHSA-2024:6493 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.16-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.16-1.redhat_00001.1.el7sso
- RHSA-2024:6499 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update
- Red Hat Single Sign-On 7
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Middleware Containers for OpenShift | Fixed | RHSA-2024:6497 |
| Red Hat Build of Keycloak | Fixed | RHSA-2024:6501 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2024:6499 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2024:6493 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2024:6494 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2024:6495 |
| Red Hat build of Keycloak 22 | Fixed | RHSA-2024:6500 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5967
- 2026-10-03 Alias added: GHSA-c25h-c27q-5qpv
- 2026-10-16 EPSS moved to the 50th–90th percentile
References
Advisory 8
Other 8
- https://access.redhat.com/security/cve/CVE-2024-5967
- RHBZ#2292200
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c25h-c27q-5qpv
- https://github.com/keycloak/keycloak/issues/30434
- https://github.com/keycloak/keycloak/commit/0d0530046b9cb4b0d74d2fdefc9bd04f1d20cac0
- https://github.com/keycloak/keycloak/commit/1f56a9e48bf96c3bcb18dfc6cd93e3dd16f281f1
- https://github.com/keycloak/keycloak/commit/bde8568d4174a7072f7c7bb507d2c7d05824b1a6
- https://github.com/keycloak/keycloak
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-5967 · CVE Program
- CVE-2024-5967 · NVD
- FIRST EPSS
- GHSA-c25h-c27q-5qpv · GitHub Advisory Database · CC BY 4.0
- CVE-2024-5967 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences