CVE-2022-3916
MEDIUM 6.8CVSS 3.1Keycloak vulnerable to session takeover with OIDC offline refreshtokens
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.
- Published
- 20 Sep 2023
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-287CWE-304CWE-384CWE-488CWE-613
- Also known as
- GHSA-97g8-xfvw-q4hg
- Sources
- NVDJSONOSV GHSA-97g8-xfvw-q4hgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
< 20.0.2 | 20.0.2 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* |
(no version) | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| NVD | redhat | openshift_container_platform_for_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platform_for_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| NVD | redhat | openshift_container_platform_ibm_z_systemscpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platform_ibm_z_systemscpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| OSV | Maven | org.keycloak:keycloak-parent | < 20.0.2 | 20.0.2 |
References
- https://access.redhat.com/errata/RHSA-2022:8961 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2022:8962 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2022:8963 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2022:8964 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2022:8965 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1043 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1044 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1045 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1047 · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1049 · Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2022-3916 · Vendor Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2141404 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-97g8-xfvw-q4hg · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-3916 · ADVISORY
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 20 Sep 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Dec 2022)