🛡️ CVE-2022-3916 — keycloak

🟡 CVSS 6.8 — Medium ✅ No Known Exploit CWE-384 NVD
6.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Keycloak vulnerable to session takeover with OIDC offline refreshtokens

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.

Weakness class

CVE-2022-3916 is classified as CWE-384: Session Fixation. A session identifier is not renewed at login, so an identifier planted beforehand becomes an authenticated session.

Affected software

CVE-2022-3916 is recorded against 7 packages.

  • keycloak (fixed in 20.0.2)
  • openshift-container-platform
  • openshift-container-platform-for-linuxone
  • openshift-container-platform-for-power
  • openshift-container-platform-ibm-z-systems
  • org.keycloak:keycloak-parent (fixed in 20.0.2)
  • single-sign-on

Timeline and source

Published on 20 September 2023 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com
bugzilla.redhat.com
access.redhat.com
access.redhat.com
access.redhat.com

Details

Severity MEDIUM
CVSS Score 6.8
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
CWE CWE-384
Public Exploit ✅ No
Source NVD
Published 2023-09-20
Updated 2026-08-12
Modified 2026-06-17
Fix URL N/A

Affected Packages

Software From version Fixed in
keycloak 20.0.2
openshift-container-platform
openshift-container-platform-for-linuxone
openshift-container-platform-for-power
openshift-container-platform-ibm-z-systems
org.keycloak:keycloak-parent 20.0.2
single-sign-on

References

Issue Tracking, Vendor Advisory https://bugzilla.redhat.com/show_bug.cgi?id=2141404
Issue Tracking, Vendor Advisory https://bugzilla.redhat.com/show_bug.cgi?id=2141404

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in keycloak

CVE-2022-3916 is rated CVSS 6.8 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2022