CVE-2024-8883: Keycloak: vulnerable redirect uri validation results in open redirec

Published Sep 16, 2024
·
Updated

Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-w8gr-xwp4-r9f7. This link is maintained to preserve external references.

Original Description A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.

Other sources

A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost/ or http://127.0.0.1/, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.

GitHub

It is possible to configure Keycloak in such a manner that any application with a 'Valid Redirect URI' set to http://localhost or http://127.0.0.1 can be redirected to an arbitrary URL of the attackers choosing. In the process sensitive information such as the authorization code can be exposed to the attacker, resulting in possible session hijacking.

Red Hat

Affected Software

15 affected componentsFixes available
maven/org.keycloak:keycloak-services>=25.0.0<=25.0.5
25.0.6
maven/org.keycloak:keycloak-services>=23.0.0<=24.0.7
24.0.8
maven/org.keycloak:keycloak-services<=22.0.12
22.0.13
maven/org.keycloak:keycloak-services<25.0.6
25.0.6
redhat Build Of Keycloak
redhat OpenShift Container Platform=4.11
redhat OpenShift Container Platform=4.12
redhat Openshift Container Platform For Ibm Z=4.9
redhat Openshift Container Platform For Ibm Z=4.10
redhat Openshift Container Platform For Linuxone=4.9
redhat Openshift Container Platform For Linuxone=4.10
redhat Openshift Container Platform For Power=4.9
redhat Openshift Container Platform For Power=4.10
redhat Single Sign-on
redhat Single Sign-on=7.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.keycloak:keycloak-services to a version that resolves this vulnerability.

    Fixed in 25.0.6
  2. Upgrade

    Upgrade maven/org.keycloak:keycloak-services to a version that resolves this vulnerability.

    Fixed in 24.0.8
  3. Upgrade

    Upgrade maven/org.keycloak:keycloak-services to a version that resolves this vulnerability.

    Fixed in 22.0.13
  4. Compensating control

    Ensure Keycloak 'Valid Redirect URI' entries do not include http://localhost and/or http://127.0.0.1 (including variants with a trailing slash), so an attacker cannot redirect users to an arbitrary URL and expose authorization codes for potential session hijacking.

Event History

Sep 16, 2024
Data Sourced
via Red Hat·06:28 AM
DescriptionSeverityAffected Software
Sep 19, 2024
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:30 PM
Dec 20, 2024
Withdrawn
via GitHub·05:54 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-8883?

CVE-2024-8883 has not been assigned a specific severity level due to its withdrawal as a duplicate.

2

How do I fix CVE-2024-8883?

To remediate CVE-2024-8883, upgrade the affected Keycloak services to version 25.0.6, 24.0.8, or 22.0.13 as appropriate.

3

What versions of Keycloak are affected by CVE-2024-8883?

CVE-2024-8883 affects Keycloak versions from 23.0.0 to 25.0.5 and from 22.0.0 to 22.0.12.

4

Is there a workaround for CVE-2024-8883?

There are no officially stated workarounds for CVE-2024-8883; updating to a fixed version is recommended.

5

What should organizations do regarding CVE-2024-8883?

Organizations should verify their Keycloak installation and ensure they are running the recommended patched versions to mitigate any potential risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203