CVE-2026-103112

Keycloak-services: keycloak-services: account takeover via authentication race using reset-credentials path

Published Nov 5, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A flaw was found in the authentication session handling of the keycloak-services component in Keycloak. The issue occurs because the system fails to verify if an authenticator is valid for the current authentication flow when switching between the standard authentication path and the reset credentials path. An authenticated attacker can exploit this by triggering a race condition during the credential reset process to associate their successful authentication state with another user's session. This can result in the attacker gaining full access to the victim's account and changing their password.

Analysis

AI-generated

Technical impact

A flaw in the authentication session handling of the keycloak-services component in Keycloak allows an attacker who has already authenticated to trigger a race condition while resetting credentials, causing the system to associate their authentication state with another user's session. This can result in the attacker gaining full access to the victim’s account and changing the victim’s password, effectively taking over the account.

Affected Systems

The vulnerability affects Red Hat Build of Keycloak and Red Hat Single Sign‑On 7. Specific affected versions are not listed in the available data, so all deployments of these products remain at risk until a patch is applied.

Risk and Exploitability

The CVSS score of 7.5 indicates a high‑severity vulnerability. The EPSS score is not available, and the issue is not yet listed in CISA KEV. The attacker must first be authenticated to the system and can trigger the exploit by accessing the reset‑credentials path, suggesting a remote web‑interface attack vector. Even though the attacker requires an initial authenticated session, the race condition can redirect that session to a different user, enabling account takeover without further privileges.

Remediation

Vendor Workaround

--- CME Mitigation Guidance (2026-11-06) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to validate that the requested authenticator ID belongs to the active execution flow when switching between authenticate and reset-credentials endpoints in keycloak-services: upgrade to Red Hat build of Keycloak 26.4.17, 26.6.8 (or the fixed Rhbk/Keycloak Rhel/Keycloak Services builds), which validate that the requested authenticator ID is present in the active execution flow when switching between authenticate and reset-credentials endpoints, closing concurrent race condition between reset-credentials and authenticate endpoints during flow switching. Until patched, this is a concern on Keycloak deployments with Forgot Credentials enabled and users without two-factor authentication, so Enforce two-factor authentication for all realm users or disable the Forgot Credentials feature to prevent cross-flow identity binding. These controls limit blast radius and contain exploitation, but they do not fix the underlying authentication race condition defect — apply the upstream patch to fully remediate. Highest-impact CME: CME-801 Multi-Factor Authentication (MFA) (high)


OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch or upgrade to a version that addresses the race condition
  • If an immediate patch is unavailable, restrict or disable the reset‑credentials API endpoint to prevent race conditions from occurring
  • Enable monitoring of authentication logs for unusual session switches or password changes and investigate anomalous behavior promptly

Generated by OpenCVE AI on November 5, 2026 at 17:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.4::el9
cpe:/a:redhat:build_keycloak:26.6::el9
References
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Vendors & Products Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Type Values Removed Values Added
Description A flaw was found in the authentication session handling of the keycloak-services component in Keycloak. The issue occurs because the system fails to verify if an authenticator is valid for the current authentication flow when switching between the standard authentication path and the reset credentials path. An authenticated attacker can exploit this by triggering a race condition during the credential reset process to associate their successful authentication state with another user's session. This can result in the attacker gaining full access to the victim's account and changing their password.
Title Keycloak-services: keycloak-services: account takeover via authentication race using reset-credentials path
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-362
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 10, 2026, 8:23 AM
Reserved
Sep 30, 2026, 5:13 AM
Status
Awaiting Analysis
Published
Nov 5, 2026, 5:17 PM
Modified
Nov 9, 2026, 5:17 PM
Severity
Important
Public date
Nov 5, 2026, 12:00 AM