Bug 2547298 (CVE-2026-107124) - CVE-2026-107124 keycloak-services: keycloak-services: OIDC logout endpoint session fixation via id_token_hint leading to account takeover
Summary: CVE-2026-107124 keycloak-services: keycloak-services: OIDC logout endpoint se...
Keywords:
Status: NEW
Alias: CVE-2026-107124
Deadline: 2026-12-28
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-07 07:41 UTC by OSIDB Bzimport
Modified: 2026-11-05 15:12 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-07 07:41:17 UTC
A Session Fixation vulnerability was discovered in Keycloak's OIDC logout endpoint (/realms/realm/protocol/openid-connect/logout). The endpoint accepts an id_token_hint parameter and writes the browser's AUTH_SESSION_ID cookie derived from the token's session ID (sid) claim before performing full token validation. If validation subsequently fails (such as with a stale token), the endpoint returns a 400 error but fails to expire the newly set cookie.
A secondary design issue allows Keycloak to reuse the root authentication-session ID as the new user-session ID during the next login process. By combining these behaviors, an authenticated attacker in the same realm can plant a chosen AUTH_SESSION_ID in a victim's browser. If the victim then performs a login within the authorization code lifetime window (default 60 seconds) after the attacker revokes their own session, the attacker can redeem a pre-minted authorization code bound to that session ID. This allows the attacker to obtain the victim's tokens and achieve full account takeover of any realm user, including realm administrators.


Note You need to log in before you can comment on or make changes to this bug.