CVE-2024-5967: Incorrect Default Permissions
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.
AI Analysis
Technical Summary
CVE-2024-5967 is a security vulnerability identified in Keycloak, an open-source identity and access management solution. The flaw resides in the LDAP testing endpoint, which allows an authenticated administrator with the 'manage-realm' permission to alter the LDAP Connection URL without needing to re-enter the LDAP bind credentials. This design oversight means that if an attacker gains admin console access or compromises a user with sufficient privileges, they can redirect the LDAP connection to an attacker-controlled server. When Keycloak attempts to authenticate against this malicious LDAP host, it inadvertently sends the stored LDAP bind credentials, effectively leaking sensitive domain credentials to the attacker. This vulnerability does not require user interaction and can be exploited remotely over the network. The affected versions include 0, 23.0.0, and 25.0.0. Although the CVSS score is low (2.7) due to the prerequisite of administrative privileges and limited impact on integrity and availability, the confidentiality impact is notable because leaked credentials can facilitate further domain compromise. No public exploits have been reported yet, but the vulnerability poses a significant risk in environments where Keycloak is deployed as a critical authentication service.
Potential Impact
The primary impact of CVE-2024-5967 is the potential leakage of LDAP bind credentials, which are often domain-level credentials with broad access rights. If an attacker obtains these credentials, they can impersonate legitimate users or services within the domain, leading to unauthorized access, data exfiltration, lateral movement, and further compromise of enterprise networks. Organizations relying on Keycloak for identity federation and LDAP integration are at risk, especially if administrative accounts are compromised or insufficiently protected. The vulnerability does not directly affect system availability or integrity but significantly undermines confidentiality. The scope of impact is limited to environments where Keycloak is deployed with LDAP integration and where attackers can gain or already have administrative privileges. This threat is particularly critical in large enterprises, government agencies, and cloud service providers that use Keycloak for centralized authentication and authorization.
Mitigation Recommendations
To mitigate CVE-2024-5967, organizations should: 1) Immediately update Keycloak to a patched version once available from the vendor or community. 2) Restrict and monitor administrative access to the Keycloak console, enforcing strong authentication methods such as multi-factor authentication (MFA) and least privilege principles. 3) Audit and limit the number of users with 'manage-realm' permissions to reduce the attack surface. 4) Implement network segmentation and firewall rules to restrict outbound LDAP connections from Keycloak servers to only trusted LDAP hosts. 5) Monitor Keycloak logs and network traffic for unusual LDAP connection attempts or changes to LDAP configuration. 6) Rotate LDAP bind credentials regularly and after any suspected compromise. 7) Consider additional application-layer controls or web application firewalls (WAF) to detect and block unauthorized configuration changes. These steps go beyond generic advice by focusing on access control, monitoring, and network restrictions specific to the nature of this vulnerability.
Affected Countries
United States, Germany, United Kingdom, France, Netherlands, India, Australia, Canada, Japan, Brazil
CVE-2024-5967: Incorrect Default Permissions
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-5967 is a security vulnerability identified in Keycloak, an open-source identity and access management solution. The flaw resides in the LDAP testing endpoint, which allows an authenticated administrator with the 'manage-realm' permission to alter the LDAP Connection URL without needing to re-enter the LDAP bind credentials. This design oversight means that if an attacker gains admin console access or compromises a user with sufficient privileges, they can redirect the LDAP connection to an attacker-controlled server. When Keycloak attempts to authenticate against this malicious LDAP host, it inadvertently sends the stored LDAP bind credentials, effectively leaking sensitive domain credentials to the attacker. This vulnerability does not require user interaction and can be exploited remotely over the network. The affected versions include 0, 23.0.0, and 25.0.0. Although the CVSS score is low (2.7) due to the prerequisite of administrative privileges and limited impact on integrity and availability, the confidentiality impact is notable because leaked credentials can facilitate further domain compromise. No public exploits have been reported yet, but the vulnerability poses a significant risk in environments where Keycloak is deployed as a critical authentication service.
Potential Impact
The primary impact of CVE-2024-5967 is the potential leakage of LDAP bind credentials, which are often domain-level credentials with broad access rights. If an attacker obtains these credentials, they can impersonate legitimate users or services within the domain, leading to unauthorized access, data exfiltration, lateral movement, and further compromise of enterprise networks. Organizations relying on Keycloak for identity federation and LDAP integration are at risk, especially if administrative accounts are compromised or insufficiently protected. The vulnerability does not directly affect system availability or integrity but significantly undermines confidentiality. The scope of impact is limited to environments where Keycloak is deployed with LDAP integration and where attackers can gain or already have administrative privileges. This threat is particularly critical in large enterprises, government agencies, and cloud service providers that use Keycloak for centralized authentication and authorization.
Mitigation Recommendations
To mitigate CVE-2024-5967, organizations should: 1) Immediately update Keycloak to a patched version once available from the vendor or community. 2) Restrict and monitor administrative access to the Keycloak console, enforcing strong authentication methods such as multi-factor authentication (MFA) and least privilege principles. 3) Audit and limit the number of users with 'manage-realm' permissions to reduce the attack surface. 4) Implement network segmentation and firewall rules to restrict outbound LDAP connections from Keycloak servers to only trusted LDAP hosts. 5) Monitor Keycloak logs and network traffic for unusual LDAP connection attempts or changes to LDAP configuration. 6) Rotate LDAP bind credentials regularly and after any suspected compromise. 7) Consider additional application-layer controls or web application firewalls (WAF) to detect and block unauthorized configuration changes. These steps go beyond generic advice by focusing on access control, monitoring, and network restrictions specific to the nature of this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2024-06-13T12:33:44.661Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69201212ce2640f942c372d4
Added to database: 11/21/2025, 7:17:38 AM
Last enriched: 3/27/2026, 6:27:52 PM
Last updated: 5/10/2026, 1:20:41 PM
Views: 183
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.