CVE-2024-2419 Keycloak: path traversal in the redirect validation

High 7.1 Published Updated

Attackers can bypass redirect validation to steal access tokens and impersonate users in Keycloak deployments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-2419?

CVE-2024-2419 is a high-severity vulnerability in Red Hat build of Keycloak 22, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-601

Which versions are affected by CVE-2024-2419?

4 open source packages ship an affected version, including org.keycloak:keycloak-services.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenFrom 23.0.024.0.3
org.keycloak:keycloak-services MavenFrom 23.0.024.0.3

How do I fix CVE-2024-2419?

Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 22.0.10 or 24.0.3.

Is CVE-2024-2419 being exploited?

There is no known exploitation of CVE-2024-2419 in the wild and no public exploit code.

Sources

Also known as GHSA-mrv8-pqfj-7gp5.

Is CVE-2024-2419 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free