Home / Red Hat / Red Hat build of Keycloak 22 / CVE-2023-6291
CVE-2023-6291: is it exploited, and which versions of Red Hat build of Keycloak 22 are affected and fixed?
CVE-2023-6291 is an open redirect vulnerability in Red Hat build of Keycloak 22. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: org.keycloak:keycloak-services before 23.0.3 (GitHub advisory GHSA-mpwq-j3xf-7m5w). Fixed in 23.0.3 (GitHub advisory GHSA-mpwq-j3xf-7m5w). Severity: High (7.1, CVSS 3.1, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 28, 2026, 19:14 UTC and NVD November 19, 2026, 07:32 UTC.
What is CVE-2023-6291?
Keycloak: redirect_uri validation bypass
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.
From the CVE record by redhat, last updated November 4, 2026, 21:06 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle | all versions (default) | 22.0.7-1 |
| Red Hat | Red Hat build of Keycloak 22 rhbk/keycloak-rhel9 | all versions (default) | 22-6 |
| Red Hat | Red Hat build of Keycloak 22 rhbk/keycloak-rhel9-operator | all versions (default) | 22-9 |
| Red Hat | Red Hat build of Keycloak 22.0.7 | not stated | |
| Red Hat | Red Hat Single Sign-On 7 rh-sso7-keycloak | not stated | |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 rh-sso7-keycloak | all versions (default) | 0:18.0.11-2.redhat_00003.1.el7sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 rh-sso7-keycloak | all versions (default) | 0:18.0.12-1.redhat_00001.1.el7sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak | all versions (default) | 0:18.0.11-2.redhat_00003.1.el8sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak | all versions (default) | 0:18.0.12-1.redhat_00001.1.el8sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak | all versions (default) | 0:18.0.11-2.redhat_00003.1.el9sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak | all versions (default) | 0:18.0.12-1.redhat_00001.1.el9sso |
| Red Hat | RHEL-8 based Middleware Containers rh-sso-7/sso76-openshift-rhel8 | all versions (default) | 7.6-38 |
| Red Hat | RHEL-8 based Middleware Containers rh-sso-7/sso7-rhel8-operator-bundle | all versions (default) | 7.6.6-2 |
| Red Hat | RHEL-8 based Middleware Containers rh-sso-7/sso76-openshift-rhel8 | all versions (default) | 7.6-41 |
| Red Hat | Single Sign-On 7.6.6 rh-sso7-keycloak | not stated | |
| Red Hat | Migration Toolkit for Applications 6 keycloak | all versions (the record names no range) | |
| Red Hat | Migration Toolkit for Applications 7 keycloak | not stated | |
| Red Hat | OpenShift Serverless keycloak | not stated | |
| Red Hat | Red Hat Data Grid 8 keycloak | not stated | |
| Red Hat | Red Hat Decision Manager 7 keycloak | not stated | |
| Red Hat | Red Hat Fuse 7 keycloak | not stated | |
| Red Hat | Red Hat JBoss Data Grid 7 keycloak | not stated | |
| Red Hat | Red Hat JBoss Enterprise Application Platform 6 rh-sso7-keycloak | not stated | |
| Red Hat | Red Hat Process Automation 7 keycloak | not stated |
As the CVE record by redhat states it, last updated November 4, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | < 23.0.3 | 23.0.3 | GHSA-mpwq-j3xf-7m5w |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 26, 2024. Summary: The redirect_uri validation logic allows for bypassing explicitly allowed hosts that would otherwise be restricted.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| redhat | keycloak | before 22.0.7 | application |
| redhat | single sign-on | all versions | application |
| redhat | openshift container platform | 4.11 | application |
| redhat | openshift container platform | 4.12 | application |
| redhat | openshift container platform for ibm z | 4.9 | application |
| redhat | openshift container platform for ibm z | 4.10 | application |
| redhat | openshift container platform for linuxone | 4.9 | application |
| redhat | openshift container platform for linuxone | 4.10 | application |
| redhat | openshift container platform for power | 4.9 | application |
| redhat | openshift container platform for power | 4.10 | application |
| redhat | single sign-on | 7.6 | application |
| redhat | migration toolkit for applications | 6.0 | application |
| redhat | migration toolkit for applications | 7.0 | application |
NVD analysis (status Modified), last modified November 4, 2026, 21:17 UTC.
How severe is CVE-2023-6291?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L | redhat |
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-6291 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 13, 2024)
- EPSS
- 1.03% probability of exploitation activity in the next 30 days, percentile 64.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Is there a workaround? (from the CVE record)
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.
Where are the vendor advisories and references?
- RHSA-2023:7854 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7855 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7856 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7857 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7858 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7860 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7861 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0798 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0799 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0800 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0801 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0804 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-6291 vdb-entry, x_refsource_REDHAT
- RHBZ#2251407 issue-tracking, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- November 24, 2023
- Published
- January 26, 2024, 14:23 UTC
- CVE record updated
- November 4, 2026, 21:06 UTC by redhat
- NVD
- Modified, last modified November 4, 2026, 21:17 UTC
- Last checked
- CVE list November 28, 2026, 19:14 UTC; NVD November 19, 2026, 07:32 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Red Hat build of Keycloak 22?
- Nov 17, 2024CVE-2023-0657 Red Hat build of Keycloak 22: privilege escalation
- Sep 19, 2024CVE-2024-8883 Red Hat Build of Keycloak: open redirect
- Sep 19, 2024CVE-2024-8698 Red Hat Build of Keycloak: cryptographic signature not verified
- Sep 9, 2024CVE-2024-7341 Red Hat Build of Keycloak: session fixation
- Sep 3, 2024CVE-2024-4629 Red Hat Build of Keycloak: improper Enforcement of a Single, Unique Action
- Jun 18, 2024CVE-2024-5967 Red Hat Build of Keycloak: insecure default permissions
- Jun 3, 2024CVE-2024-4540 Red Hat Build of Keycloak: sensitive data stored in clear text
- Apr 25, 2024CVE-2023-6787 Red Hat build of Keycloak 22: authentication bypass (improper authentication)
Every CVE in Red Hat build of Keycloak 22
Questions about CVE-2023-6291
Is CVE-2023-6291 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 1.03% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Red Hat build of Keycloak 22 are affected by CVE-2023-6291?
org.keycloak:keycloak-services before 23.0.3, per the GitHub advisory GHSA-mpwq-j3xf-7m5w. The tables above give every range the sources list.
Which version fixes CVE-2023-6291?
23.0.3, per the GitHub advisory GHSA-mpwq-j3xf-7m5w. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-6291?
High (7.1, CVSS 3.1, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2023-6291?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.