CVE-2023-6787
Java vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2023-6787) was discovered in Keycloak's re-authentication mechanism within org.keycloak.authentication. The flaw was disclosed on April 25, 2024, and affects Keycloak's session management functionality. This security issue enables potential session hijacking through manipulation of the authentication process (NVD, Red Hat CVE).

Technical details

The vulnerability occurs when an attacker triggers a new authentication process using the query parameter 'prompt=login' on an active Keycloak session. If a user cancels the re-authentication by selecting 'Restart login', an account takeover becomes possible as the new session, despite having a different SUB (subject identifier), maintains the same SID (session ID) as the previous session. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N, indicating network accessibility, low attack complexity, and high impact on integrity (NVD).

Impact

The primary impact of this vulnerability is the potential for account takeover through session hijacking. An attacker can manipulate the authentication process to gain unauthorized access to user accounts, compromising the integrity of the authentication system. The vulnerability affects the session management security of Keycloak, potentially exposing users to unauthorized access (Red Hat CVE).

Mitigation and workarounds

Red Hat has addressed this vulnerability in Red Hat build of Keycloak 22.0.10 through security updates RHSA-2024:1867 and RHSA-2024:1868. Users are advised to update to the fixed versions to mitigate the vulnerability (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p279-2cqp-84jgCRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesJul 24, 2026
GHSA-fp43-vj7g-pg92HIGH7.5
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesJul 24, 2026
GHSA-7ppr-r889-mcf2HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_3
NoYesJul 24, 2026
GHSA-mhvj-jhpq-885vHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_3
NoYesJul 24, 2026
GHSA-46q4-43ph-c6frHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management