CVE-2022-3916

Keycloak: session takeover with oidc offline refreshtokens

MEDIUM
6.8
CVSS Score
Published: September 20, 2023 at 02:28 PM UTC
Updated: June 17, 2026 at 05:00 AM UTC
7 products affected across 2 vendorsOpenShift Container PlatformSingle Sign onKeycloak

Using Red Hat Single Sign-On 7 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Single Sign-On 7 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.8
Exploit prediction
EPSS 1.0%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 20.0.2
Affected range stops below 20.0.2, so it looks safe — our inference, not a vendor statement
redhat-enterprise-linux (environment)
redhat-enterprise-linux (environment)
redhat-enterprise-linux (environment)
redhat-enterprise-linux (environment)
Vendor states this is fixed in 0:18.0.3-1.redhat_00002.1.el7sso (unaffected)
Vendor states this is fixed in 0:18.0.3-1.redhat_00002.1.el8sso (unaffected)
Vendor states this is fixed in 0:18.0.3-1.redhat_00002.1.el9sso (unaffected)
Vendor states this is fixed in 0:18.0.6-1.redhat_00001.1.el7sso (unaffected)
Vendor states this is fixed in 0:18.0.6-1.redhat_00001.1.el8sso (unaffected)
Vendor states this is fixed in 0:18.0.6-1.redhat_00001.1.el9sso (unaffected)
Vendor states this is fixed in 7.6 (unaffected)
Vendor states this is fixed in 7.6.1 (unaffected)
redhat-enterprise-linux (environment)
All versions

References (12)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.8MEDIUMredhat
Attack Vector
NETWORK
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-384CWE-613

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card