Resource exhaustion in Keycloak - CVE-2023-6563

 

Resource exhaustion in Keycloak - CVE-2023-6563

Published: December 20, 2023


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

Vulnerability details

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to improper control over internal resources in environments which have millions of offline tokens (> 500,000 users with each having at least 2 saved sessions). A remote user can create two or more user sessions and then open the "consents" tab of the admin User Interface, the UI attempts to load a huge number of offline client sessions leading to excessive memory and CPU consumption which could potentially crash the entire system.


Affected software

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

How to mitigate CVE-2023-6563

Install updates from vendor's website.

Keycloak - update to 21.0.0
Red Hat Single Sign-On - update to 7.6.6
rh-sso7-keycloak (Red Hat package) - addressed in versions 18.0.11-2.redhat_00003.1.el7sso, 18.0.11-2.redhat_00003.1.el8sso, 18.0.11-2.redhat_00003.1.el9sso

External References

Related Security Bulletins