Keycloak
CVE-2025-12390
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess shared device and browser
-
ExploitPrior user logs out with missing cookies
-
ExecutionKeycloak reuses session identifier without cleanup
-
ImpactReceive tokens belonging to another user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session fixation prevention
|
| Exploitation Conditions | Exploitation requires a shared device AND shared browser used sequentially by two different Keycloak users, where the first user's logout occurs while browser cookies are absent, causing Keycloak to reuse a session identifier and skip proper session cleanup. The strong limiting factors are: local-only vector (AV:L - no remote trigger), High attack complexity (AC:H - depends on the missing-cookie/logout timing condition), an authenticated user context (PR:L), and required user interaction (UI:R - a second user must then use the same browser session). This effectively confines realistic impact to kiosk, shared-workstation, or multi-user-same-browser deployments; single-user-per-device environments are not practically affected. |
| Impact | This is a genuine but moderate-priority issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:R) describes a hard-to-trigger flaw: it is NOT network-exploitable despite the high confidentiality/integrity impact (C:H/I:H) - the attacker (or accidental beneficiary) must share the same physical device and browser as the victim, the attack complexity is High (depends on the race condition of reused session identifiers plus missing browser cookies during logout), the actor must be an authenticated Keycloak user (PR:L), and user interaction is required (UI:R). EPSS reinforces low real-world urgency at 0.14% (3rd percentile), and there is no CISA KEV listing and no public exploit identified at time of analysis - so active, scaled exploitation is not indicated. The high CVSS impact metrics therefore overstate practical risk for most deployments: this is closer to an accidental cross-session token leak on shared/kiosk endpoints than a remotely weaponizable account-takeover bug. No SSVC decision data was provided in the input, so automatable/exploitation-maturity cannot be scored from an authoritative source. Net assessment: patch on a normal cadence; elevate only for shared-workstation, kiosk, or multi-user-same-browser environments where session confusion is realistic. |
| Exploit ScenarioDerived | On a shared or kiosk workstation, User A authenticates to Keycloak and then logs out, but the logout fails to clean up server-side session state because browser cookies are missing. User B then uses the same browser on the same device and, due to a reused session identifier, is issued tokens that actually belong to User A - gaining access to A's session. No public exploit code exists; this is a low-complexity-to-observe but conditions-heavy, local-only scenario rather than a remotely triggerable attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 18, 2026
Session identifier reuse in Keycloak can leak one user's authentication tokens to a different user when two people sequentially use the same device and browser and the first user's logout occurs without browser cookies present. The issue is locally scoped, requires an authenticated user and user interaction, and is realistically confined to kiosk, shared-workstation, or multi-user-same-browser deployments; single-user-per-device environments are not practically affected. EPSS is 0.14% (3rd percentile), no public exploit has been identified at time of analysis, and vendor errata are available.
RemediationAI
Apply the vendor-released Red Hat errata RHSA-2025:21370, RHSA-2025:21371, RHSA-2025:22088, and RHSA-2025:22089, or upgrade to the corresponding fixed Keycloak build once confirmed against those advisories; the provided data does not state a single upstream fix version. Until patched, reduce exposure by preventing shared browser profiles on Keycloak endpoints, requiring users to fully log out and clear cookies, using private/incognito windows for kiosk or shared-workstation access, and terminating server-side sessions after each user. These controls carry operational trade-offs: private browsing can disrupt SSO convenience, forced logout and cookie clearing add friction, and terminating server-side sessions may interrupt legitimate long-lived sessions, so they should be targeted to multi-user or kiosk deployments rather than applied universally.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a session fixation/session management flaw (CWE-384) rooted in Keycloak's handling of session identifiers during logout when browser cookies are missing. Instead of reliably invalidating the server-side session and issuing a fresh identifier, Keycloak may reuse an existing session identifier and skip proper cleanup, so a subsequent user on the same browser profile can receive tokens belonging to the earlier user. The assessed vector is AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N: exploitation requires local access to a shared device and browser, a timing-dependent missing-cookie logout condition, an authenticated user context, and a second user who then uses the same browser session. These constraints sharply limit practical exposure to shared-workstation, kiosk, and multi-user-same-browser scenarios rather than ordinary single-user deployments.
Know when Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
Requires shared same-device/browser so AV:L, depends on the missing-cookie logout race so AC:H, needs an authenticated user (PR:L) and a second user's interaction (UI:R); token exposure gives C:H/I:H, A:N.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Keycloak. In Keycloak where a user can accidentally get access to another user's session if both use the same device and browser. This happens because Keycloak sometimes reuses session identifiers and doesn’t clean up properly during logout when browser cookies are missing. As a result, one user may receive tokens that belong to another user.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at
A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS
An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne
Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be
It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit
Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10
A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi
A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in
A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t
A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c
NVD
CVE.org
EPSS
GitHub
Exploit-DB