Skip to main content

Keycloak CVE-2025-12390

MEDIUM
Session Fixation (CWE-384)
2025-10-28 secalert@redhat.com
6.0
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access shared device and browser
  2. Exploit
    Prior user logs out with missing cookies
  3. Execution
    Keycloak reuses session identifier without cleanup
  4. Impact
    Receive 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.keycloak:keycloak-services fix: 26.0.0

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

Vendor (redhat) PRIMARY 6.0 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 6.0 MEDIUM

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.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
4.0 AV:L/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 6.0 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
widely deployed open-source identity and access management platform
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2014-3709 HIGH POC
8.8 Oct 18

The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at

CVE-2024-1132 HIGH POC
8.1 Apr 17

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS

CVE-2023-6563 HIGH POC
7.7 Dec 14

An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne

CVE-2022-1466 MEDIUM POC
6.5 Apr 26

Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be

CVE-2017-7474 CRITICAL
9.8 May 12

It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit

CVE-2026-76187 CRITICAL
9.8 Sep 15

Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10

CVE-2022-1245 CRITICAL
9.8 Jul 08

A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi

CVE-2019-14910 CRITICAL
9.8 Dec 05

A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in

CVE-2021-20195 CRITICAL
9.6 May 28

A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote

CVE-2023-6134 MEDIUM POC
5.4 Dec 14

A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t

CVE-2022-0225 MEDIUM POC
5.4 Aug 26

A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy