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.

Severity (CVSS 3.1)6.0Medium
Exploit odds (30 days)0.7%top 46.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.keycloak:keycloak-services22.0.10GHSA-8rmm-gm28-pj8q
Mavenorg.keycloak:keycloak-services24.0.3GHSA-8rmm-gm28-pj8q

Affected products (as reported)

VendorProductVersions
keycloak 0 – before 22.0.1024.0.0 – before 24.0.3
Red Hat Red Hat AMQ Broker 7 see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 22.0.10 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHOSS-1.33-RHEL-8 see references
Red Hat RHPAM 7.13.5 async see references
Red Hat Migration Toolkit for Applications 6 see references
Red Hat Migration Toolkit for Applications 7 see references
Red Hat Red Hat build of Apicurio Registry 2 see references
Red Hat Red Hat build of Quarkus see references
Red Hat Red Hat build of Quarkus see references
Red Hat Red Hat Data Grid 8 see references
Red Hat Red Hat Decision Manager 7 see references
Red Hat Red Hat Developer Hub 1 see references
Red Hat Red Hat Fuse 7 see references
Red Hat Red Hat JBoss Data Grid 7 see references
Red Hat Red Hat JBoss Enterprise Application Platform 6 see references
Red Hat Red Hat JBoss Enterprise Application Platform 6 see references
Red Hat Red Hat JBoss Enterprise Application Platform 6 see references
Red Hat Red Hat JBoss Enterprise Application Platform 7 see references

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L

References