Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Build Of Keycloak | - |
| Redhat | Keycloak | < 22.0.10 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/errata/RHSA-2024:1867Vendor Advisory
- https://access.redhat.com/errata/RHSA-2024:1868Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2023-6787Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2254375Issue TrackingVendor Advisory
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wjVendor Advisory
- https://access.redhat.com/errata/RHSA-2024:1867Vendor Advisory
- https://access.redhat.com/errata/RHSA-2024:1868Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2023-6787Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2254375Issue TrackingVendor Advisory
FAQ
What is CVE-2023-6787?
CVE-2023-6787 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 ...
How severe is CVE-2023-6787?
CVE-2023-6787 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-6787?
Check the references section above for vendor advisories and patch information. Affected products include: Redhat Build Of Keycloak, Redhat Keycloak.