CVE-2023-6787
highpriority · track · 35EPSS 0.007 · 54 %ileDEEURUUSEPSS · scored 2026-10-23
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (16)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-0466Keycloak: Schwachstelle ermöglicht Erlangen von BenutzerrechtenDeutsch2024-02-21csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um Benutzerrechte zu erlangen.
- WID-SEC-W-2024-0914Red Hat Enterprise Linux (keycloak): Mehrere SchwachstellenDeutsch2024-04-16csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Enterprise Linux ausnutzen, um Sicherheitsmaßnahmen zu umgehen, vertrauliche Informationen offenzulegen, Cross-Site Scripting (XSS)-Angriffe durchzuführen oder einen Denial-of-Service-Zustand zu verursachen.
- GHSA-c9h6-v78w-52wjKeycloak vulnerable to session hijacking via re-authentication2024-04-17ghsa · osvUS
A flaw was found in Keycloak. An active keycloak session can be hijacked by initiating a new authentication (having the query parameter prompt=login) and forcing the user to enter his credentials once again. If the user cancels this re-authentication by clicking Restart login, the account takeover could take place as the new session, with a different SUB, will have the same SID as the previous session.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHSA-2024:1867cnnvd
- https://access.redhat.com/errata/RHSA-2024:1868cnnvd
- https://access.redhat.com/security/cve/CVE-2023-6787cnnvd
- https://access.redhat.com/security/cve/cve-2023-6787cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2254375cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-6787/cnnvd
- https://vigilance.fr/vulnerability/Keycloak-user-access-via-re-authentication-44095cnnvd
- https://access.redhat.com/errata/RHSA-2024:1867enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan