Vulnerabilities · 2023 · Redhat
CVE-2023-6787
Redhat Build Of Keycloak vulnerability
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 products
Build Of Keycloak, Keycloak. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Redhat Build Of Keycloak runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- access.redhat.com/errata/RHSA-2024:1867 · Vendor Advisory
- access.redhat.com/errata/RHSA-2024:1868 · Vendor Advisory
- access.redhat.com/security/cve/CVE-2023-6787 · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2254375 · Vendor Advisory
- github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-6787
- github.com/advisories/GHSA-c9h6-v78w-52wj
- nvd.nist.gov/vuln/detail/CVE-2023-6787
- cve.org/CVERecord?id=CVE-2023-6787
More vulnerabilities in Redhat products
CVE-2025-53862CVE-2025-53861CVE-2025-47711CVE-2025-46400CVE-2025-46399CVE-2025-46398CVE-2025-46397CVE-2025-35036All 5,277
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.