Read the docs
TI-2023-05774 Aliases CVE-2023-6291GHSA-mpwq-j3xf-7m5w

Keycloak: redirect_uri validation bypass

Priority LOW 33CWE-601Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Spoofing
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Partial Red Hat: 8 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0095 61st percentileScored 2026-11-07
Fix Partial org.keycloak:keycloak-services (Maven): 23.0.3Red Hat: 12 advisoriesRed Hat: 8 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Red HatRed Hat build of Keycloak 22—22.0.7-1Patch availableCNA
Red HatRed Hat build of Keycloak 22—22-6Patch availableCNA
Red HatRed Hat build of Keycloak 22—22-9Patch availableCNA
Red HatRed Hat build of Keycloak 22.0.7——Not affectedCNA
Red HatRed Hat Single Sign-On 7——Not affectedCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 7—18.0.11-2.redhat_00003.1.el7ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 7—18.0.12-1.redhat_00001.1.el7ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 8—18.0.11-2.redhat_00003.1.el8ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 8—18.0.12-1.redhat_00001.1.el8ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 9—18.0.11-2.redhat_00003.1.el9ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 9—18.0.12-1.redhat_00001.1.el9ssoPatch availableCNA
Red HatRHEL-8 based Middleware Containers—7.6-38Patch availableCNA
Red HatRHEL-8 based Middleware Containers—7.6.6-2Patch availableCNA
Red HatRHEL-8 based Middleware Containers—7.6-41Patch availableCNA
Red HatSingle Sign-On 7.6.6——Not affectedCNA
Red HatMigration Toolkit for Applications 6——No fix listedCNA
Red HatMigration Toolkit for Applications 7——Not affectedCNA
Red HatOpenShift Serverless——Not affectedCNA
Red HatRed Hat Data Grid 8——Not affectedCNA
Red HatRed Hat Decision Manager 7——Not affectedCNA
Red HatRed Hat Fuse 7——Not affectedCNA
Red HatRed Hat JBoss Data Grid 7——Not affectedCNA
Red HatRed Hat JBoss Enterprise Application Platform 6——Not affectedCNA
Red HatRed Hat Process Automation 7——Not affectedCNA
—org.keycloak:keycloak-services (Maven)before 23.0.323.0.3Patch availableGHSA-mpwq-j3xf-7m5w
  • Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.7-1 Patch available CNA
  • Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-6 Patch available CNA
  • Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-9 Patch available CNA
  • Red Hat build of Keycloak 22.0.7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el7sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.12-1.redhat_00001.1.el7sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el8sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.12-1.redhat_00001.1.el8sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el9sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.12-1.redhat_00001.1.el9sso Patch available CNA
  • RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-38 Patch available CNA
  • RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6.6-2 Patch available CNA
  • RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-41 Patch available CNA
  • Single Sign-On 7.6.6 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Migration Toolkit for Applications 6 VendorRed Hat Affected — Fixed in — No fix listed CNA
  • Migration Toolkit for Applications 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • OpenShift Serverless VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Data Grid 8 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Decision Manager 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Fuse 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat JBoss Data Grid 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat JBoss Enterprise Application Platform 6 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Process Automation 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • org.keycloak:keycloak-services (Maven) Vendor— Affected before 23.0.3 Fixed in 23.0.3 Patch available GHSA-mpwq-j3xf-7m5w

CPE configurations NVD · 16

CPEVersionsRoleVendor
cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*before 22.0.7VulnerableRed Hat
cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*not specified by NVDVulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:*4.11VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:*4.12VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_ibm_z:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_ibm_z:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
  • cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* Versions before 22.0.7 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:* Versions 4.11 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:* Versions 4.12 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_ibm_z:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_ibm_z:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
Show 6 more CPE
CPEVersionsRoleVendor
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0Running onRed Hat
cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*7.0Running onRed Hat
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*9.0Running onRed Hat
cpe:2.3:a:redhat:migration_toolkit_for_applications:6.0:*:*:*:*:*:*:*6.0VulnerableRed Hat
cpe:2.3:a:redhat:migration_toolkit_for_applications:7.0:*:*:*:*:*:*:*7.0VulnerableRed Hat
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Running on ·Red Hat
  • cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Running on ·Red Hat
  • cpe:2.3:a:redhat:migration_toolkit_for_applications:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:migration_toolkit_for_applications:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat

Remediation

  • Fix · GHSA-mpwq-j3xf-7m5w org.keycloak:keycloak-services (Maven) Fixed in 23.0.3 Advisory →

Red Hat 12 advisories

  • RHSA-2024:0804 Released 2024-02-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.7 security update
    • Red Hat Single Sign-On 7
  • RHSA-2024:0798 Released 2024-02-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.7 security update on RHEL 7
    • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.12-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.12-1.redhat_00001.1.el7sso
  • RHSA-2024:0800 Released 2024-02-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.7 security update on RHEL 9
    • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.12-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.12-1.redhat_00001.1.el9sso
Show 9 more Red Hat advisories
  • RHSA-2024:0799 Released 2024-02-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.7 security update on RHEL 8
    • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.12-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.12-1.redhat_00001.1.el8sso
  • RHSA-2024:0801 Released 2024-02-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.7 for OpenShift image enhancement update
    • Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
  • RHSA-2023:7861 Released 2023-12-14 · Red Hat rating Important
    Red Hat build of Keycloak 22.0.7 images enhancement and security update
    • Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
  • RHSA-2023:7857 Released 2023-12-14 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.6 for OpenShift image enhancement and security update
    • Middleware Containers for OpenShift rh-sso-7/sso7-rhel8-operator-bundle, rh-sso-7/sso76-openshift-rhel8
  • RHSA-2023:7860 Released 2023-12-14 · Red Hat rating Important
    Red Hat build of Keycloak 22.0.7 enhancement and security update
    • Red Hat build of Keycloak 22.0.7
  • RHSA-2023:7858 Released 2023-12-14 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.6 security update
    • Single Sign-On 7.6.6
  • RHSA-2023:7854 Released 2023-12-14 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.6 security update on RHEL 7
    • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el7sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el7sso
  • RHSA-2023:7856 Released 2023-12-14 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.6 security update on RHEL 8
    • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el8sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el8sso
  • RHSA-2023:7855 Released 2023-12-14 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.6 security update on RHEL 9
    • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el9sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el9sso

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Migration Toolkit for Applications 6AffectedNo fix planned: Will not fix
Middleware Containers for OpenShiftFixed RHSA-2023:7857, RHSA-2024:0801
Red Hat Single Sign-On 7Fixed RHSA-2024:0804
Red Hat Single Sign-On 7.6 for RHEL 7 ServerFixed RHSA-2023:7854, RHSA-2024:0798
Red Hat Single Sign-On 7.6 for RHEL 8Fixed RHSA-2023:7856, RHSA-2024:0799
Red Hat Single Sign-On 7.6 for RHEL 9Fixed RHSA-2023:7855, RHSA-2024:0800
Red Hat build of Keycloak 22Fixed RHSA-2023:7861
Red Hat build of Keycloak 22.0.7Fixed RHSA-2023:7860
Single Sign-On 7.6.6Fixed RHSA-2023:7858
Not affected: 8 products
  • Migration Toolkit for Applications 7
  • OpenShift Serverless
  • Red Hat Data Grid 8
  • Red Hat Decision Manager 7
  • Red Hat Fuse 7
  • Red Hat JBoss Data Grid 7
  • Red Hat JBoss Enterprise Application Platform 6
  • Red Hat Process Automation 7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-6291
  2. 2026-10-03 Alias added: GHSA-mpwq-j3xf-7m5w

References

  • TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
  • TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
  • TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
  • TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
  • TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
  • TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
See all 97 →

Sources