CVE-2023-6717Keycloak: xss via assertion consumer service url in saml post-binding flow
A flaw was found in the SAML client registration in Keycloak that could allow an administrator to register malicious JavaScript URIs as Assertion Consumer Service POST Binding URLs (ACS), posing a Cross-Site Scripting (XSS) risk. This issue may allow a malicious admin in one realm or a client with registration access to target users in different realms or applications, executing arbitrary JavaScript in their contexts upon form submission. This can enable unauthorized access and harmful actions, compromising the confidentiality, integrity, and availability of the complete KC instance.
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 | 24.0.3 | GHSA-8rmm-gm28-pj8q |
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.
- keycloak: affected: before 22.0.10, 24.0.0 to before 24.0.3; fixed in
22.0.10,24.0.3 - Red Hat AMQ Broker 7
- Red Hat build of Keycloak 22
- Red Hat build of Keycloak 22.0.10
- Red Hat RHOSS-1.33-RHEL-8
- Red Hat RHPAM 7.13.5 async
- Red Hat Migration Toolkit for Applications 6
- Red Hat Migration Toolkit for Applications 7
- Red Hat build of Apicurio Registry 2
- Red Hat build of Quarkus
- Red Hat Data Grid 8
- Red Hat Decision Manager 7
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:1353 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1867 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1868 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2945 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4057 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:1353
- https://access.redhat.com/errata/RHSA-2024:1867
- https://access.redhat.com/errata/RHSA-2024:1868
- https://access.redhat.com/errata/RHSA-2024:2945
- https://access.redhat.com/errata/RHSA-2024:4057
- https://access.redhat.com/security/cve/CVE-2023-6717
- https://bugzilla.redhat.com/show_bug.cgi?id=2253952
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.