CVE-2023-6787
published medium CVSS 3.1 · 6.5Keycloak: session hijacking via re-authentication
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | keycloak0 to < 22.0.10 · 0 to < 24.0.3 | Affected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 22 · 22.0.10-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 22 · 22-13 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 22 · 22-16 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | keycloak-coreRed Hat build of Keycloak 22.0.10 | Unaffected | Not required | redhat |
| Red Hat | — | rh-sso7-keycloakRed Hat Single Sign-On 7 | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| keycloak | 0 to < 22.0.10 (affected · semver)0 to < 24.0.3 (affected · semver) | redhat · cna | |
| Red Hat | Red Hat build of Keycloak 22 | 22.0.10-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 22 | 22-13 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 22 | 22-16 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 22.0.10 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7 | Default: affected | redhat · cna |
Weaknesses
2- CWE-287 Improper Authentication
- CWE-287 CWE-287 Improper Authentication
References
5- RHSA-2024:1867 https://access.redhat.com/errata/RHSA-2024:1867
- RHSA-2024:1868 https://access.redhat.com/errata/RHSA-2024:1868
- https://access.redhat.com/security/cve/CVE-2023-6787
- RHBZ#2254375 https://bugzilla.redhat.com/show_bug.cgi?id=2254375
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj
Provider assertions
3redhat · cna
Keycloak: session hijacking via re-authentication
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9fa9272ae624bc0973dc1075dc150752759a88908b1c9df290a7115ab3357717
- Ingested
- 23 Sep 2026, 08:15:54 UTC
- Source record
- Official CVE record