Advisory Published
Updated

REDHAT-BUG-2251407

First published: Fri Nov 24 2023(Updated: )

An issue was found in the redirect_uri validation logic that allows for a bypass of otherwise explicitly allowed hosts. The problem arises in the verifyRedirectUri method, which attempts to enforce rules on user-controllable input, but essentially causes a desynchronization in how Keycloak and browsers interpret URLs. Keycloak, for example, receives "<a href="https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com">https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com</a>" and thinks the authority to be keycloak.org when it is actually example.com. This happens because the validation logic is performed on a URL decoded version, which no longer represents the original input. Refer: <a href="https://github.com/keycloak/keycloak/pull/24819">https://github.com/keycloak/keycloak/pull/24819</a>

Affected SoftwareAffected VersionHow to fix
Red Hat Build of Keycloak

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2251407?

    The severity of REDHAT-BUG-2251407 is considered high due to the potential for unauthorized redirection.

  • How do I fix REDHAT-BUG-2251407?

    To fix REDHAT-BUG-2251407, update your installation of Red Hat Keycloak to the latest version where the vulnerability has been addressed.

  • What is the impact of REDHAT-BUG-2251407?

    The impact of REDHAT-BUG-2251407 includes the possibility for an attacker to bypass protection mechanisms for allowed hosts.

  • What versions of Keycloak are affected by REDHAT-BUG-2251407?

    Versions of Red Hat Keycloak that can be impacted by REDHAT-BUG-2251407 are those prior to the patched release.

  • Is REDHAT-BUG-2251407 publicly disclosed?

    Yes, REDHAT-BUG-2251407 has been publicly disclosed in Red Hat's bug tracking system.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203