CVE-2023-6787

Keycloak: session hijacking via re-authentication

HIGH
8.8
CVSS Score
Published: April 25, 2024 at 04:02 PM UTC
Updated: June 17, 2026 at 06:51 AM UTC
3 products affected across 2 vendorsBuild of KeycloakKeycloakSingle Sign on

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

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

Description

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.

Affected

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

v < 22.0.1023.0.0 ≤ v < 24.0.3
Affected range stops below 22.0.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 24.0.3, so it looks safe — our inference, not a vendor statement
All versions
Vendor states this is fixed in 22-13 (unaffected)
Vendor states this is fixed in 22-16 (unaffected)
Vendor states this is fixed in 22.0.10 (unaffected)
Vendor states this is fixed in 22.0.10-1 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-287

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