Permissions, Privileges, and Access Controls in Keycloak - CVE-2022-2668

 

Permissions, Privileges, and Access Controls in Keycloak - CVE-2022-2668

Published: October 5, 2022


Vulnerability identifier: #VU67935
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-2668
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass implemented security restrictions.

The vulnerability exists due to application allows to upload an arbitrary JavaScript for the SAML protocol mapper even if the UPLOAD_SCRIPTS feature is disabled. A remote user can upload a potentially dangerous file and perform XSS attacks.


Affected software

Keycloak
Red Hat Single Sign-On
rh-sso7-keycloak (Red Hat package)
rh-sso7 (Red Hat package)
rh-sso7-javapackages-tools (Red Hat package)

How to mitigate CVE-2022-2668

Install updates from vendor's website.

Keycloak - update to 19.0.2
Red Hat Single Sign-On - addressed in versions 7.5.3, 7.6.1
rh-sso7-keycloak (Red Hat package) - addressed in versions 15.0.8-1.redhat_00001.1.el7sso, 15.0.8-1.redhat_00001.1.el8sso, 18.0.3-1.redhat_00001.1.el7sso, 18.0.3-1.redhat_00001.1.el8sso
rh-sso7 (Red Hat package) - update to 1-5.el9sso
rh-sso7-javapackages-tools (Red Hat package) - update to 6.0.0-7.el9sso

External References

Related Security Bulletins