Vulnerability · Published Apr 25, 2024 · Assigned by redhat
CVE-2023-6717Keycloak: xss via assertion consumer service url in saml post-binding flow
Medium 6.0
In plain English
A medium-severity cross-site scripting in keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | 22.0.10 | GHSA-8rmm-gm28-pj8q |
| Maven | org.keycloak:keycloak-services | 24.0.3 | GHSA-8rmm-gm28-pj8q |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L
References
- RHSA-2024:1353 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1867 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1868 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:2945 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:4057 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-6717 vdb-entry, x_refsource_REDHAT
- RHBZ#2253952 issue-tracking, x_refsource_REDHAT