Keycloak redirect_uri Validation Bypass Enables Token Theft
CVE-2024-2419 Published on April 17, 2024

Keycloak: path traversal in the redirect validation
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.

Github Repository Vendor Advisory NVD

Vulnerability Analysis

CVE-2024-2419 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be low. considered to have a small impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
LOW

Timeline

Reported to Red Hat.

Made public. 34 days later.

Weakness Type

What is an Open Redirect Vulnerability?

A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks. An http parameter may contain a URL value and could cause the web application to redirect the request to the specified URL. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts have a more trustworthy appearance.

CVE-2024-2419 has been classified to as an Open Redirect vulnerability or weakness.


Products Associated with CVE-2024-2419

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-2419 are published in these products:

 
 

Vulnerable Packages

The following package name and versions may be associated with CVE-2024-2419

Package Manager Vulnerable Package Versions Fixed In
maven org.keycloak:keycloak-services < 22.0.10 22.0.10
maven org.keycloak:keycloak-services >= 23.0.0, < 24.0.3 24.0.3

Exploit Probability

EPSS
0.07%
Percentile
21.17%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.