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.
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
| Link | Tags |
|---|---|
| https://access.redhat.com/errata/RHSA-2024:1867 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2024:1868 | Vendor Advisory |
| https://access.redhat.com/security/cve/CVE-2023-6787 | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2254375 | Issue TrackingVendor Advisory |
| https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2024:1867 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2024:1868 | Vendor Advisory |
| https://access.redhat.com/security/cve/CVE-2023-6787 | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2254375 | Issue TrackingVendor Advisory |
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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
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.