Improper certificate validation in Keycloak - CVE-2023-2422

 

Improper certificate validation in Keycloak - CVE-2023-2422

Published: June 28, 2023


Vulnerability identifier: #VU77766
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-2422
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass authorization process.

The vulnerability exists due to improper certificate validation chain when a Keycloak server is configured to support mTLS authentication for OAuth/OpenID clients. A remote user that possesses a proper certificate can authorize itself as any other client and therefore access data that belongs to other clients.


Affected software

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

How to mitigate CVE-2023-2422

Install updates from vendor's website.

Keycloak - update to 21.1.2
Red Hat Single Sign-On - update to 7.6.4
rh-sso7-keycloak (Red Hat package) - addressed in versions 18.0.8-1.redhat_00001.1.el7sso, 18.0.8-1.redhat_00001.1.el8sso, 18.0.8-1.redhat_00001.1.el9sso

External References

Related Security Bulletins