CVE-2025-12390
JSON

6.0medium

Org.keycloak.protocol.oidc.endpoints.logoutendpoint: offline session takeover due to reused authentication session id

Severity
6.0medium CVSS:3.1 by redhat
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-rg35-5v25-mqvp

Description

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.

Affected

Product or packageVersionsReported by
keycloakbefore 26.0.0CVE List
rhbk/keycloak-operator-bundleNot specified
Not affected: from 26.2.11-1 before *, from 26.4.4-1 before *
CVE List
rhbk/keycloak-rhel9Not specified
Not affected: from 26.2-12 before *, from 26.4-3 before *
CVE List
rhbk/keycloak-rhel9-operatorNot specified
Not affected: from 26.2-12 before *, from 26.4-3 before *
CVE List
Red Hat Red Hat build of Keycloak 26.2.11Not specifiedCVE List
org.keycloak:keycloak-services (Maven)before 26.0.0GitHub Advisory Database

All scores

redhat6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
GitHub6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-384

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se encontró una vulnerabilidad en Keycloak. En Keycloak, donde un usuario puede obtener acceso accidentalmente a la sesión de otro usuario si ambos usan el mismo dispositivo y navegador. Esto sucede porque Keycloak a veces reutiliza identificadores de sesión y no realiza una limpieza adecuada durante el cierre de sesión cuando faltan las cookies del navegador. Como resultado, un usuario puede recibir tokens que pertenecen a otro usuario.

References

https://access.redhat.com/errata/RHSA-2025:21370vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:21371vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:22088vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:22089vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2025-12390vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2406793issue-tracking, web
https://github.com/keycloak/keycloak/issues/43853web
https://nvd.nist.gov/vuln/detail/CVE-2025-12390advisory
https://github.com/keycloak/keycloak/issues/32197web
https://github.com/keycloak/keycloak/commit/5344aada5ee06b02ec3a9e0f52fa381d085b6282web
https://github.com/keycloak/keycloak/commit/b46fab230824a2304daafe74be019e8bd4ee590aweb
https://github.com/keycloak/keycloak/commit/d82438a611f2f869f1966c13012953fe963a493dweb

Sources

SourceRecordLicence
CVE ListCVE-2025-12390 changed 2026-11-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-rg35-5v25-mqvp changed 2026-09-10CC-BY-4.0
NVDCVE-2025-12390 changed 2026-10-18Public domain