CVE-2024-1132: Keycloak: path transversal in redirection validation

Published Jan 31, 2024
·
Updated

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. An attacker can use this flaw to construct a malicious request to bypass validation and access other URLs and potentially sensitive information within the domain or possibly conduct further attacks. This flaw affects any client that utilizes a wildcard in the Valid Redirect URIs field.

Acknowledgements: Special thanks to Axel Flamcourt for reporting this issue and helping us improve our project.

Other sources

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. An attacker can use this flaw to construct a malicious request to bypass validation and access other URLs and potentially sensitive information within the domain or possibly conduct further attacks. This flaw affects any client that utilizes a wildcard in the Valid Redirect URIs field.

Version affected: Keycloak >= 21.1.0. Red Hat Build of Keycloak affected since beginning. Red Hat Single Sign-On affected since 7.6.5

Red Hat

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. This issue could allow an attacker to construct a malicious request to bypass validation and access other URLs and sensitive information within the domain or conduct further attacks. This flaw affects any client that utilizes a wildcard in the Valid Redirect URIs field, and requires user interaction within the malicious URL.

NVD

Affected Software

22 affected componentsFixes available
maven/org.keycloak:keycloak-services>=23.0.0<24.0.3
24.0.3
maven/org.keycloak:keycloak-services<22.0.10
22.0.10
redhat/keycloak<22.0.10
22.0.10
redhat/keycloak<24.0.3
24.0.3
redhat/rhbk<22.0.10
22.0.10
redhat/rhsso<7.6.8
7.6.8
redhat Build Of Keycloak
redhat Jboss Middleware Text-only Advisories Middleware=1.0
redhat keycloak>=21.1.0<22.0.10
redhat keycloak>=23.0.0<24.0.3
redhat Migration Toolkit For Applications=1.0
redhat Migration Toolkit For Runtimes
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 24.0.3
  2. Upgrade

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

    Fixed in 22.0.10
  3. Upgrade

    Upgrade redhat/keycloak to a version that resolves this vulnerability.

    Fixed in 22.0.10
  4. Upgrade

    Upgrade redhat/keycloak to a version that resolves this vulnerability.

    Fixed in 24.0.3
  5. Upgrade

    Upgrade redhat/rhbk to a version that resolves this vulnerability.

    Fixed in 22.0.10
  6. Upgrade

    Upgrade redhat/rhsso to a version that resolves this vulnerability.

    Fixed in 7.6.8

Event History

Jan 31, 2024
Data Sourced
via Red Hat·05:07 PM
DescriptionSeverityAffected Software
Apr 17, 2024
CVE Published
via MITRE·01:21 PM
Data Sourced
via MITRE·01:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
Affected Software
Advisory Published
via GitHub·06:25 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-1132?

CVE-2024-1132 has a medium severity rating due to its potential for unauthorized URL access and data exposure.

2

How do I fix CVE-2024-1132?

To resolve CVE-2024-1132, upgrade to Keycloak version 24.0.3 or 22.0.10 depending on your installation.

3

What types of systems are affected by CVE-2024-1132?

CVE-2024-1132 affects Keycloak versions 23.0.0 to 24.0.3 and versions prior to 22.0.10.

4

What could an attacker achieve by exploiting CVE-2024-1132?

An attacker exploiting CVE-2024-1132 can bypass URL validation, potentially accessing sensitive information or launching further attacks.

5

Is there a patch available for CVE-2024-1132?

Yes, a patch is available in Keycloak versions 24.0.3 and 22.0.10.

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