Keycloak: offline session token dos
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | 18.0.11-2.redhat_00003.1.el7sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | 18.0.11-2.redhat_00003.1.el8sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | 18.0.11-2.redhat_00003.1.el9sso | Patch available | CNA |
| Red Hat | RHEL-8 based Middleware Containers | — | 7.6-38 | Patch available | CNA |
| Red Hat | RHEL-8 based Middleware Containers | — | 7.6.6-2 | Patch available | CNA |
| Red Hat | Single Sign-On 7.6.6 | — | — | Not affected | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| — | org.keycloak:keycloak-model-jpa (Maven) | before 21.0.0 | 21.0.0 | Patch available | GHSA-54f3-c6hg-865h |
- Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el7sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el8sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.11-2.redhat_00003.1.el9sso Patch available CNA
- RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-38 Patch available CNA
- RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6.6-2 Patch available CNA
- Single Sign-On 7.6.6 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- org.keycloak:keycloak-model-jpa (Maven) Vendor— Affected before 21.0.0 Fixed in 21.0.0 Patch available GHSA-54f3-c6hg-865h
CPE configurations NVD · 12
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* | before 21.0.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* | 7.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* | 9.0 | Running on | Red Hat |
| cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* | not specified by NVD | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:* | 4.11 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:* | 4.12 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* | 4.9 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* | 4.10 | Vulnerable | Red Hat |
- cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* Versions before 21.0.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Running on ·Red Hat
- cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:* Versions 4.11 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:* Versions 4.12 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-54f3-c6hg-865h org.keycloak:keycloak-model-jpa (Maven) Fixed in 21.0.0 Advisory →
Red Hat 5 advisories
- RHSA-2023:7857 Released 2023-12-14 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.6 for OpenShift image enhancement and security update
- Middleware Containers for OpenShift rh-sso-7/sso7-rhel8-operator-bundle, rh-sso-7/sso76-openshift-rhel8
- RHSA-2023:7858 Released 2023-12-14 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.6 security update
- Single Sign-On 7.6.6
- RHSA-2023:7854 Released 2023-12-14 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.6 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el7sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el7sso
Show 2 more Red Hat advisories
- RHSA-2023:7856 Released 2023-12-14 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.6 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el8sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el8sso
- RHSA-2023:7855 Released 2023-12-14 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.6 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.11-2.redhat_00003.1.el9sso, rh-sso7-keycloak-server-18.0.11-2.redhat_00003.1.el9sso
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Middleware Containers for OpenShift | Fixed | RHSA-2023:7857 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2023:7854 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2023:7856 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2023:7855 |
| Single Sign-On 7.6.6 | Fixed | RHSA-2023:7858 |
Not affected: 1 product
- Red Hat Build of Keycloak
Timeline
- 2026-10-02 Threatist record created from CVE-2023-6563
- 2026-10-03 Alias added: GHSA-54f3-c6hg-865h
References
Exploit 1
Advisory 6
More Red Hat Keycloak vulnerabilities
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
- TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
- TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
- TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
Sources
- CVE-2023-6563 · CVE Program
- CVE-2023-6563 · NVD
- FIRST EPSS
- GHSA-54f3-c6hg-865h · GitHub Advisory Database · CC BY 4.0
- CVE-2023-6563 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences