Description
An unconstrained memory consumption vulnerability was discovered in Keycloak. It can be triggered in environments which have millions of offline tokens (> 500,000 users with each having at least 2 saved sessions). If an attacker creates 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.
Remediation
References
https://access.redhat.com/errata/RHSA-2023:7854
https://access.redhat.com/errata/RHSA-2023:7855
https://access.redhat.com/errata/RHSA-2023:7856
https://access.redhat.com/errata/RHSA-2023:7857
https://access.redhat.com/errata/RHSA-2023:7858
https://access.redhat.com/security/cve/CVE-2023-6563
https://bugzilla.redhat.com/show_bug.cgi?id=2253308
https://github.com/keycloak/keycloak/issues/13340
Related Vulnerabilities
CVE-2022-31679 Vulnerability in maven package org.springframework.data:spring-data-rest-webmvc
CVE-2018-8024 Vulnerability in maven package org.apache.spark:spark-core
CVE-2020-11969 Vulnerability in maven package org.apache.tomee:openejb-lite
CVE-2015-2582 Vulnerability in maven package org.keycloak:keycloak-saml-core
CVE-2023-43497 Vulnerability in maven package org.jenkins-ci.main:jenkins-core