CVE-2024-2419: URL Redirection to Untrusted Site ('Open Redirect')
A flaw was found in Keycloak's redirect_uri validation logic. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to the theft of an access token, making it possible for the attacker to impersonate other users. It is very similar to CVE-2023-6291.
AI Analysis
Technical Summary
CVE-2024-2419 is a vulnerability in Keycloak, an open-source identity and access management solution widely used for single sign-on and authentication services. The flaw resides in the redirect_uri validation logic, which is intended to restrict redirection to explicitly allowed hosts after authentication. Due to improper validation, attackers can craft URLs that bypass these restrictions, causing users to be redirected to untrusted or malicious sites. This open redirect vulnerability can be exploited to steal access tokens by tricking users into following malicious links, enabling attackers to impersonate legitimate users and gain unauthorized access to protected resources. The vulnerability affects all Keycloak versions up to 23.0.0. The CVSS 3.1 score of 7.1 indicates a high-severity issue with a network attack vector, no privileges required, user interaction needed, and a scope change that affects confidentiality, integrity, and availability. Although no active exploits have been reported, the similarity to CVE-2023-6291, which had known exploitation, suggests a credible threat. The vulnerability's exploitation could lead to significant security breaches in environments relying on Keycloak for authentication, especially in cloud and enterprise settings.
Potential Impact
The impact of CVE-2024-2419 is substantial for organizations using Keycloak as their identity provider. Successful exploitation can lead to theft of access tokens, allowing attackers to impersonate users and access sensitive data or systems without authorization. This compromises confidentiality and integrity of user sessions and may also disrupt availability if attackers perform unauthorized actions or cause session invalidation. Enterprises relying on Keycloak for single sign-on and federated identity management face risks of widespread account compromise, data breaches, and potential lateral movement within networks. The vulnerability could also undermine trust in authentication workflows, affecting compliance with regulatory requirements. Given Keycloak's adoption in government, financial, healthcare, and technology sectors, the threat has broad implications for critical infrastructure and sensitive data protection worldwide.
Mitigation Recommendations
To mitigate CVE-2024-2419, organizations should immediately upgrade Keycloak to a version where the redirect_uri validation logic is properly fixed once patches are released. Until patches are available, administrators should implement strict allowlists for redirect URIs and consider disabling or restricting external redirects where feasible. Employ additional monitoring and logging of authentication redirects to detect suspicious redirection patterns. Use Web Application Firewalls (WAFs) to block known malicious URLs and enforce strict Content Security Policies (CSP) to reduce the impact of redirected malicious content. Educate users to be cautious of unexpected authentication redirects and implement multi-factor authentication (MFA) to reduce the risk of token misuse. Conduct regular security assessments and penetration testing focused on authentication flows to identify similar weaknesses. Finally, review and tighten OAuth2/OpenID Connect configurations to minimize exposure.
Affected Countries
United States, Germany, United Kingdom, France, India, Japan, Canada, Australia, Netherlands, Brazil
CVE-2024-2419: URL Redirection to Untrusted Site ('Open Redirect')
Description
A flaw was found in Keycloak's redirect_uri validation logic. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to the theft of an access token, making it possible for the attacker to impersonate other users. It is very similar to CVE-2023-6291.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-2419 is a vulnerability in Keycloak, an open-source identity and access management solution widely used for single sign-on and authentication services. The flaw resides in the redirect_uri validation logic, which is intended to restrict redirection to explicitly allowed hosts after authentication. Due to improper validation, attackers can craft URLs that bypass these restrictions, causing users to be redirected to untrusted or malicious sites. This open redirect vulnerability can be exploited to steal access tokens by tricking users into following malicious links, enabling attackers to impersonate legitimate users and gain unauthorized access to protected resources. The vulnerability affects all Keycloak versions up to 23.0.0. The CVSS 3.1 score of 7.1 indicates a high-severity issue with a network attack vector, no privileges required, user interaction needed, and a scope change that affects confidentiality, integrity, and availability. Although no active exploits have been reported, the similarity to CVE-2023-6291, which had known exploitation, suggests a credible threat. The vulnerability's exploitation could lead to significant security breaches in environments relying on Keycloak for authentication, especially in cloud and enterprise settings.
Potential Impact
The impact of CVE-2024-2419 is substantial for organizations using Keycloak as their identity provider. Successful exploitation can lead to theft of access tokens, allowing attackers to impersonate users and access sensitive data or systems without authorization. This compromises confidentiality and integrity of user sessions and may also disrupt availability if attackers perform unauthorized actions or cause session invalidation. Enterprises relying on Keycloak for single sign-on and federated identity management face risks of widespread account compromise, data breaches, and potential lateral movement within networks. The vulnerability could also undermine trust in authentication workflows, affecting compliance with regulatory requirements. Given Keycloak's adoption in government, financial, healthcare, and technology sectors, the threat has broad implications for critical infrastructure and sensitive data protection worldwide.
Mitigation Recommendations
To mitigate CVE-2024-2419, organizations should immediately upgrade Keycloak to a version where the redirect_uri validation logic is properly fixed once patches are released. Until patches are available, administrators should implement strict allowlists for redirect URIs and consider disabling or restricting external redirects where feasible. Employ additional monitoring and logging of authentication redirects to detect suspicious redirection patterns. Use Web Application Firewalls (WAFs) to block known malicious URLs and enforce strict Content Security Policies (CSP) to reduce the impact of redirected malicious content. Educate users to be cautious of unexpected authentication redirects and implement multi-factor authentication (MFA) to reduce the risk of token misuse. Conduct regular security assessments and penetration testing focused on authentication flows to identify similar weaknesses. Finally, review and tighten OAuth2/OpenID Connect configurations to minimize exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2024-03-13T13:17:07.809Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 691356bfb36faa5b6c09d25a
Added to database: 11/11/2025, 3:31:11 PM
Last enriched: 2/28/2026, 10:42:37 AM
Last updated: 3/25/2026, 10:57:28 PM
Views: 196
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.