CVE-2022-3916 MEDIUM

CVE-2022-3916: Keycloak: session takeover with oidc offline refreshtokens

Vendor Red Hat
Product Red Hat Single Sign-On 7
Weakness CWE-384 · Session fixation
Published September 20, 2023
Last update August 3, 2024

CVSS base score

6.8/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

September 20, 2023 CVE published
August 3, 2024 Record updated