← Vulnerability feed

Vulnerability record · CVE-2023-6787 · published 25 April 2024

CVE-2023-6787: Redhat build of keycloak improper authentication vulnerability

Redhat · Build Of Keycloak

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.

8.8 CVSS 3.1 High EPSS 0.74% · top 47.1% CWE-287 · Improper authentication
8.8CVSS 3.1 base score
0.74%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
9References
17 Jun 2026Last modified by NVD

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.

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

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-6787 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-16442Redhat build of keycloak origin validation error vulnerabilityA flaw was found in the SAML broker component of Keycloak, which is used to manage identity federation and user authentication. The issue occurs beca…EPSS 0.31%9.8CVE-2022-1245Redhat keycloak missing authorization vulnerabilityA privilege escalation flaw was found in the token exchange feature of keycloak. Missing authorization allows a client application holding a valid ac…EPSS 1.4%9.8CVE-2019-14910Redhat keycloak improper authentication vulnerabilityA vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used instead of SSL/TLS from the LDA…EPSS 1.1%9.6CVE-2021-20195Redhat keycloak improper input validation vulnerabilityA flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to …EPSS 1.2%9.1CVE-2026-16443Redhat build of keycloak improper verification of cryptographic signature vulnerabilityA flaw was found in the SAML metadata import functionality of the keycloak-services component, which is the core engine for identity brokering in Red…EPSS 0.26%9.1CVE-2022-3782Redhat keycloak path traversal vulnerabilitykeycloak: path traversal via double URL encoding. A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. An a…EPSS 5.8%9.1CVE-2019-14837Redhat keycloak hard-coded credentials vulnerabilityA flaw was found in keycloack before version 8.0.0. The owner of 'placeholder.org' domain can setup mail server on this domain and knowing only name …EPSS 1.7%8.8CVE-2026-15572Redhat build of keycloak type confusion vulnerabilityA flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restri…EPSS 0.65%

Source: NIST National Vulnerability Database (record CVE-2023-6787), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.