Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2022-4361 EUVD-2023-1671GHSA-3p62-6fjh-3p5h

Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC

Published Jul 7, 2023 · Updated Nov 12, 2024 · Assigned by redhat

Description

Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.

Affected products

VendorProductAffectedFixed
keycloak keycloak — 21.1.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7-keycloak +1 18.0.8-1.redhat_00001.1.el7sso RHSA-2023:3885, RHSA-2023:3884, RHSA-2023:3883

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.keycloak:keycloak-services < 21.1.2 21.1.2 GHSA-3p62-6fjh-3p5h

Advisories 4

References