CVE-2023-6134 json
Keycloak: reflected xss via wildcard in oidc redirect_uri
published 2023-12-14 2 y ago modified 2026-09-22 48 d ago also GHSA-cvg2-7c3j-g36j , EUVD-2023-3189
- cvss
- 4.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This issue could allow an attacker to submit a specially crafted request leading to cross-site scripting (XSS) or further attacks. This flaw is the result of an incomplete fix for CVE-2020-10748.
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-6134 updated cvss 4.6
keycloak: reflected XSS via wildcard in OIDC redirect_uri
-
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
-
Red Hat Single Sign-On 7.6.6fixed: vendor fix RHSA-2023:7858
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
Exploit prediction
1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7857 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
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
Classification
References
-
github.com
/keycloak/keycloak/commit/15a21bf8e4fb71f006ba9caf25b9c9d1d152cd20
web
-
access.redhat.com
/errata/RHSA-2023:7857
vendor-advisory, web, exploit
-
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: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-6134
vdb-entry, web, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2249673
issue-tracking, web
-
github.com
/keycloak/keycloak/security/advisories/GHSA-cvg2-7c3j-g36j
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-6134
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2023-6134
- GitHub Advisory GHSA-cvg2-7c3j-g36j
- NVD CVE-2023-6134
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.