CVE-2022-3916
mediumpriority · track · 27EPSS 0.010 · 61 %ileDEEUUSEPSS · scored 2026-10-27
A flaw was found in the offline_access scope in Keycloak. This issue would affect users of shared computers more (especially if cookies are not cleared), due to a lack of root session validation, and the reuse of session ids across root and user authentication sessions. This enables an attacker to resolve a user session attached to a previously authenticated user; when utilizing the refresh token, they will be issued a token for the original user.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (22)
Products and version ranges known to be affected.
- redhat openshift container platform= 4.10nvdUScpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*
- redhat openshift container platform= 4.9nvdUScpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*
- redhat openshift container platform for linuxone= 4.10nvdUScpe:2.3:a:redhat:openshift_container_platform_for_linuxone:*:*:*:*:*:*:*:*
- redhat openshift container platform for linuxone= 4.9nvdUScpe:2.3:a:redhat:openshift_container_platform_for_linuxone:*:*:*:*:*:*:*:*
- redhat openshift container platform for power= 4.10nvdUScpe:2.3:a:redhat:openshift_container_platform_for_power:*:*:*:*:*:*:*:*
- redhat openshift container platform for power= 4.9nvdUScpe:2.3:a:redhat:openshift_container_platform_for_power:*:*:*:*:*:*:*:*
- redhat openshift container platform ibm z systems= 4.10nvdUScpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:*:*:*:*:*:*:*:*
- redhat openshift container platform ibm z systems= 4.9nvdUScpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:*:*:*:*:*:*:*:*
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-2009Keycloak: Schwachstelle ermöglicht Umgehen von SicherheitsvorkehrungenDeutsch2022-11-09csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um Sicherheitsvorkehrungen zu umgehen.
- GHSA-97g8-xfvw-q4hgKeycloak vulnerable to session takeover with OIDC offline refreshtokens2022-12-13ghsa · osvUS
An issue was discovered in Keycloak when using a client with the `offline_access` scope. Reuse of session ids across root and user authentication sessions and a lack of root session validation enabled attackers to resolve a user session attached to a different previously authenticated user. This issue most affects users of shared computers. Suppose a user logs out of their account (without clearing their cookies) in a mobile app or similar client that includes the `offline_access` scope, and another user authenticates to the application. In that case, it will share the same root session id, and when utilizing the refresh token, they will be issued a token for the original user.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (40)
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHSA-2022:8961cnnvd
- https://access.redhat.com/errata/RHSA-2022:8962cnnvd
- https://access.redhat.com/errata/RHSA-2022:8963cnnvd
- https://access.redhat.com/errata/RHSA-2022:8964cnnvd
- https://access.redhat.com/errata/RHSA-2022:8965cnnvd
- https://access.redhat.com/errata/RHSA-2023:1043cnnvd
- https://access.redhat.com/errata/RHSA-2023:1044cnnvd
- https://access.redhat.com/errata/RHSA-2023:1045cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan