HIGH7.7
GHSA-54f3-c6hg-865h
Allocation of Resources Without Limits in Keycloak
Quick fix
GHSA-54f3-c6hg-865h — org.keycloak:keycloak-model-jpa: upgrade to the fixed version with the command below.
# pom.xml: bump <version>21.0.0</version> for org.keycloak:keycloak-model-jpaDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.keycloak:keycloak-model-jpa
Introduced in:
0Fixed in: 21.0.0Fix
# pom.xml: bump <version>21.0.0</version> for org.keycloak:keycloak-model-jpaReferences
- https://nvd.nist.gov/vuln/detail/CVE-2023-6563[ADVISORY]
- https://github.com/keycloak/keycloak/issues/13340[WEB]
- https://github.com/keycloak/keycloak/pull/15463[WEB]
- https://github.com/keycloak/keycloak/commit/556146f961f7c8ddf64de15e2117a58d045f72b5[WEB]
- https://access.redhat.com/errata/RHSA-2023:7854[WEB]
- https://access.redhat.com/errata/RHSA-2023:7855[WEB]
- https://access.redhat.com/errata/RHSA-2023:7856[WEB]
- https://access.redhat.com/errata/RHSA-2023:7857[WEB]
- https://access.redhat.com/errata/RHSA-2023:7858[WEB]
- https://access.redhat.com/security/cve/CVE-2023-6563[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2253308[WEB]
- https://github.com/keycloak/keycloak[PACKAGE]