CVE-2023-6291 json
Keycloak: redirect_uri validation bypass
published 2023-12-21 2 y ago modified 2026-11-04 4 d ago also GHSA-mpwq-j3xf-7m5w , EUVD-2023-3249
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
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.
Patch / fix
- maven org.keycloak:keycloak-services 23.0.3
- Red Hat Red Hat build of Keycloak 22 22-6, 22-9, 22.0.7-1
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 7 0:18.0.11-2.redhat_00003.1.el7sso, 0:18.0.12-1.redhat_00001.1.el7sso
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 8 0:18.0.11-2.redhat_00003.1.el8sso, 0:18.0.12-1.redhat_00001.1.el8sso
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 9 0:18.0.11-2.redhat_00003.1.el9sso, 0:18.0.12-1.redhat_00001.1.el9sso
- Red Hat RHEL-8 based Middleware Containers 7.6-38, 7.6-41, 7.6.6-2
- rh-sso7-keycloak red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el9sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el9sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el8sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el8sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el7sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.12-1.redhat_00001.1.el7sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.11-2.redhat_00003.1.el9sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.11-2.redhat_00003.1.el9sso
red hat advisories RHSA-2024:0800RHSA-2024:0799RHSA-2024:0798RHSA-2023:7855RHSA-2023:7856RHSA-2023:7854
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-6291 updated cvss 7.1
keycloak: redirect_uri validation bypass
-
Red Hat Migration Toolkit for Applications 6 keycloakaffected: workaround, no fix planned “Will not fix”
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8 7.6-38, rh-sso-7/sso76-openshift-rhel8 7.6-41, rh-sso-7/sso7-rhel8-operator-bundle 7.6.6-2fixed: vendor fix RHSA-2023:7857
-
Red Hat build of Keycloak 22 rhbk/keycloak-rhel9 22-6, rhbk/keycloak-rhel9-operator 22-9, rhbk/keycloak-operator-bundle 22.0.7-1fixed: vendor fix RHSA-2023:7861
-
Red Hat build of Keycloak 22.0.7fixed: vendor fix RHSA-2023:7860
-
Red Hat Single Sign-On 7fixed: vendor fix RHSA-2024:0804
-
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 18.0.12-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 18.0.11-2.redhat_00003.1.el7sso, rh-sso7-keycloak-server 18.0.12-1.redhat_00001.1.el7ssofixed: vendor fix RHSA-2023:7854
-
Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak 18.0.11-2.redhat_00003.1.el8sso, rh-sso7-keycloak 18.0.12-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 18.0.11-2.redhat_00003.1.el8sso, rh-sso7-keycloak-server 18.0.12-1.redhat_00001.1.el8ssofixed: vendor fix RHSA-2023:7856
-
Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak 18.0.11-2.redhat_00003.1.el9sso, rh-sso7-keycloak 18.0.12-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server 18.0.11-2.redhat_00003.1.el9sso, rh-sso7-keycloak-server 18.0.12-1.redhat_00001.1.el9ssofixed: vendor fix RHSA-2023:7855
show 2 moreshow fewer
-
Red Hat Single Sign-On 7.6.6fixed: vendor fix RHSA-2023:7858
-
Red Hat Migration Toolkit for Applications 7 keycloak Red Hat OpenShift Serverless keycloak keycloak Red Hat Data Grid 8 keycloak keycloak Red Hat Decision Manager 7 keycloak keycloak Red Hat Fuse 7 keycloak keycloak Red Hat JBoss Data Grid 7 keycloak keycloaknot affected: vulnerable code not present
+2 more productsfewer
Red Hat JBoss Enterprise Application Platform 6 rh-sso7-keycloak rh-sso7-keycloak Red Hat Process Automation 7 keycloak keycloak
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.95% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-services | <23.0.3 |
23.0.3 |
Affected products
- 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
Classification
References
-
github.com
/keycloak/keycloak/commit/b2e91105315ccf2c1df549b4f6c5948322cbfd1b
web
-
access.redhat.com
/errata/RHSA-2023:7854
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7855
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7856
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7857
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7858
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7860
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2023:7861
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:0798
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:0799
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:0800
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:0801
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:0804
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2023-6291
vdb-entry, web, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2251407
issue-tracking, web, vendor-advisory
-
github.com
/keycloak/keycloak/security/advisories/GHSA-mpwq-j3xf-7m5w
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-6291
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2023-6291
- GitHub Advisory GHSA-mpwq-j3xf-7m5w
- NVD CVE-2023-6291
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.