CVE-2023-6787 MEDIUM

CVE-2023-6787: Keycloak: session hijacking via re-authentication

Vendor Red Hat
Product Red Hat build of Keycloak 22.0.10
Weakness CWE-287 · Improper authentication
Published April 25, 2024
Last update November 11, 2025

CVSS base score

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

CVSS vector

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

What the vulnerability does

01Description

A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter "prompt=login," prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting "Restart login," an account takeover may occur, as the new session, with a different SUB, will possess the same SID as the previous session.

Key dates

02Disclosure timeline

April 25, 2024 CVE published
November 11, 2025 Record updated