title: Keycloak: redirect_uri validation bypass
description: A flaw was found in the redirect_uri validation logic in Keycloak. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to an access token being stolen, making it possible for the attacker to impersonate other users.
problem types: URL Redirection to Untrusted Site ('Open Redirect')
affected:
{
product: keycloak
vendor: n/a
defaultStatus: affected
}
{
vendor: Red Hat
product: Red Hat build of Keycloak 22
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rhbk/keycloak-operator-bundle
defaultStatus: affected
versions:
version: 22.0.7-1, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:build_keycloak:22::el9
}
{
vendor: Red Hat
product: Red Hat build of Keycloak 22
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rhbk/keycloak-rhel9
defaultStatus: affected
versions:
version: 22-6, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:build_keycloak:22::el9
}
{
vendor: Red Hat
product: Red Hat build of Keycloak 22
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rhbk/keycloak-rhel9-operator
defaultStatus: affected
versions:
version: 22-9, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:build_keycloak:22::el9
}
{
vendor: Red Hat
product: Red Hat build of Keycloak 22.0.7
collectionURL: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
defaultStatus: unaffected
cpe: cpe:/a:redhat:build_keycloak:22
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
defaultStatus: unaffected
packageName: keycloak
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.11-2.redhat_00003.1.el7sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el7
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.12-1.redhat_00001.1.el7sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el7
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.11-2.redhat_00003.1.el8sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el8
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.12-1.redhat_00001.1.el8sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el8
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.11-2.redhat_00003.1.el9sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el9
}
{
vendor: Red Hat
product: Red Hat Single Sign-On 7.6 for RHEL 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: rh-sso7-keycloak
defaultStatus: affected
versions:
version: 0:18.0.12-1.redhat_00001.1.el9sso, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6::el9
}
{
vendor: Red Hat
product: RHEL-8 based Middleware Containers
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rh-sso-7/sso76-openshift-rhel8
defaultStatus: affected
versions:
version: 7.6-38, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhosemc:1.0::el8
}
{
vendor: Red Hat
product: RHEL-8 based Middleware Containers
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rh-sso-7/sso7-rhel8-operator-bundle
defaultStatus: affected
versions:
version: 7.6.6-2, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhosemc:1.0::el8
}
{
vendor: Red Hat
product: RHEL-8 based Middleware Containers
collectionURL: https://catalog.redhat.com/software/containers/
packageName: rh-sso-7/sso76-openshift-rhel8
defaultStatus: affected
versions:
version: 7.6-41, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhosemc:1.0::el8
}
{
vendor: Red Hat
product: Single Sign-On 7.6.6
collectionURL: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
defaultStatus: unaffected
packageName: keycloak
cpe: cpe:/a:redhat:red_hat_single_sign_on:7.6.6
}
{
vendor: Red Hat
product: Migration Toolkit for Applications 6
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: affected
cpes: cpe:/a:redhat:migration_toolkit_applications:6
}
{
vendor: Red Hat
product: Migration Toolkit for Applications 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: affected
cpes: cpe:/a:redhat:migration_toolkit_applications:7
}
{
vendor: Red Hat
product: OpenShift Serverless
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:serverless:1
}
{
vendor: Red Hat
product: Red Hat Data Grid 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_data_grid:8
}
{
vendor: Red Hat
product: Red Hat Decision Manager 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_enterprise_brms_platform:7
}
{
vendor: Red Hat
product: Red Hat JBoss Data Grid 7
collectionURL: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_data_grid:7
}
{
vendor: Red Hat
product: Red Hat JBoss Enterprise Application Platform 6
collectionURL: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
packageName: rh-sso7-keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_enterprise_application_platform:6
}
{
vendor: Red Hat
product: Red Hat JBoss Fuse 7
collectionURL: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_fuse:7
}
{
vendor: Red Hat
product: Red Hat Process Automation 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: keycloak
defaultStatus: unaffected
cpes: cpe:/a:redhat:jboss_enterprise_bpms_platform:7
}
metrics:
other: [
content: {'value': 'Important', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]
workarounds: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.