CVE-2023-6717
Keycloak: xss via assertion consumer service url in saml post-binding flow
Check your servers for CVE-2023-6717
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-6717 affects keycloak, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.82%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 54.1% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 25 Apr 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
keycloak
package
keycloak |
affected before 22.0.10 affected from 24.0.0, before 24.0.3
Other versions: unaffected
|
|
Red Hat AMQ Broker 7
package
keycloak |
unaffected the record does not list versions
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-operator-bundle |
unaffected 22.0.10-1 and later
Other versions: affected
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-rhel9 |
unaffected 22-13 and later
Other versions: affected
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-rhel9-operator |
unaffected 22-16 and later
Other versions: affected
|
|
Red Hat build of Keycloak 22.0.10
package
keycloak |
unaffected the record does not list versions
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-data-index-ephemeral-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-data-index-postgresql-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-jobs-service-ephemeral-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-jobs-service-postgresql-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-kn-workflow-cli-artifacts-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-operator-bundle |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-rhel8-operator |
unaffected 1.33.0-3 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-swf-builder-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
|
RHOSS-1.33-RHEL-8
package
openshift-serverless-1/logic-swf-devmode-rhel8 |
unaffected 1.33.0-5 and later
Other versions: affected
|
| RHPAM 7.13.5 async |
unaffected the record does not list versions
|
|
Migration Toolkit for Applications 6
package
mta/mta-ui-rhel9 |
affected the record does not list versions
|
|
Migration Toolkit for Applications 7
package
mta/mta-ui-rhel9 |
unaffected the record does not list versions
|
|
Red Hat build of Apicurio Registry 2
package
keycloak |
affected the record does not list versions
|
|
Red Hat build of Quarkus
package
keycloak-core |
unaffected the record does not list versions
|
|
Red Hat build of Quarkus
package
keycloak-core |
unaffected the record does not list versions
|
|
Red Hat Data Grid 8
package
keycloak |
affected the record does not list versions
|
|
Red Hat Decision Manager 7
package
keycloak |
affected the record does not list versions
|
|
Red Hat Developer Hub 1
package
rhdh/rhdh-hub-rhel9 |
unaffected the record does not list versions
|
|
Red Hat Fuse 7
package
keycloak |
affected the record does not list versions
|
|
Red Hat JBoss Data Grid 7
package
keycloak |
affected the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 6
package
keycloak |
unknown the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 6
package
org.keycloak-keycloak-parent |
unknown the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 6
package
rh-sso7-keycloak |
unknown the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 7
package
keycloak |
unaffected the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 8
package
keycloak |
unaffected the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform Expansion Pack
package
keycloak |
unaffected the record does not list versions
|
|
Red Hat OpenShift GitOps
package
openshift-gitops-1/gitops-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Process Automation 7
package
keycloak |
affected the record does not list versions
|
|
Red Hat Single Sign-On 7
package
rh-sso7-keycloak |
affected the record does not list versions
|
Is my server affected?
Find the installed version of keycloak and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i keycloak
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-6717 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-6717RHEL, Rocky, Alma, Fedora
rpm -q keycloak
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-6717Alpine
apk list --installed | grep -i keycloakWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-6717
trivy image --scanners vuln IMAGE | grep CVE-2023-6717
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2024:1353 access.redhat.com · vendor advisory
- RHSA-2024:1867 access.redhat.com · vendor advisory
- RHSA-2024:1868 access.redhat.com · vendor advisory
- RHSA-2024:2945 access.redhat.com · vendor advisory
- RHSA-2024:4057 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2023-6717 access.redhat.com · vdb entry
- RHBZ#2253952 bugzilla.redhat.com · issue tracking
Source: the record CVE-2023-6717 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse