CVE-2023-6134Keycloak: reflected xss via wildcard in oidc redirect_uri
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Maven library | org.keycloak:keycloak-services | Fixed | 23.0.3 | GHSA-cvg2-7c3j-g36j |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat build of Keycloak 22
- Red Hat build of Keycloak 22.0.7
- Red Hat Single Sign-On 7
- Red Hat Single Sign-On 7.6 for RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 8
- 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
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2023:7854 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7855 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7856 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7857 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7858 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7860 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2023:7854
- https://access.redhat.com/errata/RHSA-2023:7855
- https://access.redhat.com/errata/RHSA-2023:7856
- https://access.redhat.com/errata/RHSA-2023:7857
- https://access.redhat.com/errata/RHSA-2023:7858
- https://access.redhat.com/errata/RHSA-2023:7860
- https://access.redhat.com/errata/RHSA-2023:7861
- https://access.redhat.com/errata/RHSA-2024:0798
- https://access.redhat.com/errata/RHSA-2024:0799
- https://access.redhat.com/errata/RHSA-2024:0800
- https://access.redhat.com/errata/RHSA-2024:0801
- https://access.redhat.com/errata/RHSA-2024:0804
- https://access.redhat.com/security/cve/CVE-2023-6134
- https://bugzilla.redhat.com/show_bug.cgi?id=2249673
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.