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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 22 | — | — |
| Red Hat | Red Hat build of Keycloak 22.0.7 | — | — |
| Red Hat | Red Hat Single Sign-On 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | — |
| Red Hat | RHEL-8 based Middleware Containers | — | — |
| Red Hat | Single Sign-On 7.6.6 | — | — |
| Red Hat | Migration Toolkit for Applications 6 | — | — |
| Red Hat | Migration Toolkit for Applications 7 | — | — |
| Red Hat | OpenShift Serverless | — | — |
| Red Hat | Red Hat Data Grid 8 | — | — |
| Red Hat | Red Hat Decision Manager 7 | — | — |
| Red Hat | Red Hat Fuse 7 | — | — |
| Red Hat | Red Hat JBoss Data Grid 7 | — | — |
| Red Hat | Red Hat JBoss Enterprise Application Platform 6 | — | — |
| Red Hat | Red Hat Process Automation 7 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.11-2.redhat_00003.1.el7sso | RHSA-2024:0800, RHSA-2024:0799, RHSA-2024:0798 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | < 23.0.3 | 23.0.3 | GHSA-mpwq-j3xf-7m5w |
Advisories 7
- RHSA-2024:0800 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.7 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2024:0799 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.7 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2024:0798 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.7 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2023:7856 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.6 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2023:7854 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.6 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2023:7855 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.6 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- WID-SEC-2023-3156 Keycloak: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 1, 2024
References
- RHSA-2023:7854 vendor-advisory
- RHSA-2023:7855 vendor-advisory
- RHSA-2023:7856 vendor-advisory
- RHSA-2023:7857 vendor-advisory
- RHSA-2023:7858 vendor-advisory
- RHSA-2023:7860 vendor-advisory
- RHSA-2023:7861 vendor-advisory
- RHSA-2024:0798 vendor-advisory
- RHSA-2024:0799 vendor-advisory
- RHSA-2024:0800 vendor-advisory
- RHSA-2024:0801 vendor-advisory
- RHSA-2024:0804 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2023-6291 vdb-entry
- RHBZ#2251407 issue-tracking