Skip to main content

Keycloak CVE-2026-9798

| EUVDEUVD-2026-32717 MEDIUM
Authentication Bypass by Primary Weakness (CWE-305)
2026-05-28 secalert@redhat.com GHSA-q6h7-xxp7-7429
4.3
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid OAuth client credentials for a CIBA-enabled client
  2. Delivery
    Trigger brute-force lockout on target user account via failed login attempts
  3. Exploit
    Submit CIBA authentication request targeting the locked user account
  4. Execution
    Keycloak CIBA handler bypasses lockout state check
  5. Impact
    Tokens issued for locked account enabling continued unauthorized access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Primary weakness mitigation
Exploitation Conditions

The CIBA grant type must be enabled on the target Keycloak realm and on at least one OAuth client registration - this is a non-default feature that must be explicitly configured, which meaningfully limits exposure. The attacker must possess valid OAuth client credentials (client_id and client_secret) for a registered client permitted to use the CIBA flow; these are application-level credentials, not user credentials. The target user account must be in a temporarily locked state (i.e., brute-force protection must have been triggered by prior failed login attempts). The CVSS UI:R component indicates user interaction is formally required in the CIBA flow (typically, the user approving a request on their authentication device), but the vulnerability description implies token issuance proceeds regardless of account lock status - the practical impact of the UI:R condition on exploitability should be verified with Red Hat. Exploitation is limited to Keycloak deployments with CIBA explicitly enabled; installations using only Authorization Code or Client Credentials flows are not affected by this specific bypass.

Impact

The CVSS 4.3 Medium score (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N) reflects a limited confidentiality impact and requires user interaction (UI:R), which constrains opportunistic mass exploitation. However, several signals warrant a higher operational priority for organizations using Keycloak as a primary identity provider. The PR:N designation requires careful interpretation: the CVSS vector indicates no user-level privileges are needed, but the description explicitly states the attacker requires 'valid client credentials' - these are OAuth client credentials (client_id/client_secret), not user-account credentials, and may be obtainable by any registered or compromised OAuth application. The UI:R component aligns with CIBA's design requiring user-side device interaction, but the vulnerability description implies tokens are issued regardless, making the UI:R condition potentially misleading for risk modeling - this discrepancy should be verified with the vendor. EPSS data was not provided, preventing probabilistic exploitation forecasting. The vulnerability is not in CISA KEV and no POC has been identified. Despite a moderate CVSS score, any bypass of account lockout in an IAM system carries amplified risk: it nullifies a key defense against credential-stuffing and persistent low-rate brute-force attacks targeting Keycloak-protected applications.

Exploit ScenarioDerived

An attacker conducting a low-and-slow credential-stuffing campaign against a Keycloak-protected application triggers the brute-force lockout on a target user account after several failed login attempts. Rather than abandoning the attempt, the attacker - operating a registered OAuth client or having obtained client credentials from a compromised application - switches to the CIBA authentication endpoint, submitting CIBA authentication requests for the locked account. Keycloak processes these requests and issues tokens without checking the account's lockout state, effectively defeating the protection mechanism and allowing the attacker to continue testing credentials or obtain a valid session token. No public exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 28, 2026

Keycloak's Client-Initiated Backchannel Authentication (CIBA) flow fails to enforce brute-force account lockouts, allowing an attacker with valid OAuth client credentials to continue initiating authentication requests and obtain tokens for a user account that should be temporarily locked. This undermines the core account-protection mechanism designed to throttle credential-stuffing and password-guessing campaigns. No public exploit has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog, though its CVSS score of 4.3 understates the strategic value of bypassing a lockout policy in an identity provider.

RemediationAI

The primary remediation is to apply the vendor-released patch identified in the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-9798; however, an exact fixed version number was not present in the available intelligence and should be confirmed directly from that advisory before upgrading. As a compensating control pending patching, administrators should consider disabling the CIBA grant type on realms where it is not operationally required - this removes the vulnerable code path entirely but will break any applications relying on the backchannel authentication flow. Alternatively, restricting which OAuth clients are permitted to use the CIBA flow via Keycloak client-level grant type configuration reduces the attack surface to trusted, internally controlled applications. Organizations should also increase brute-force lockout thresholds and duration so that even if bypass is possible, the window of exploitability yields fewer successful credential guesses per attempt. Note that disabling CIBA entirely is a breaking change for CIBA-dependent integrations and should be tested in non-production environments first.

Affected Packages

maven org.keycloak:keycloak-services no fix

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

Keycloak is a widely deployed open-source Identity and Access Management (IAM) solution supporting OAuth 2.0, OpenID Connect, and SAML. The Client-Initiated Backchannel Authentication (CIBA) flow (RFC 9156) is a decoupled authentication mechanism where an OAuth client initiates authentication on behalf of a user, and the user approves the request on a separate authentication device. Unlike the standard Authorization Code flow, CIBA does not redirect the user's browser, making it a distinct code path in Keycloak's authentication stack. The root cause is CWE-305 (Authentication Bypass by Primary Weakness): the CIBA request handler does not consult or respect the brute-force protection state of the targeted user account before initiating authentication processing and issuing tokens. The affected component is the CIBA flow implementation within Keycloak's authentication broker, tracked under Red Hat Bugzilla ID 2482470.

Know when Build Of 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 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

DescriptionCVE.org

A flaw was found in Keycloak, an open-source identity and access management solution. When a user account is temporarily locked due to repeated failed login attempts, an attacker with valid client credentials can exploit the Client-Initiated Backchannel Authentication (CIBA) flow to bypass this brute-force protection. This allows continued authentication attempts and token issuance even when the account should be locked, potentially enabling further unauthorized access attempts.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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 No
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*
CVE-2026-114938 HIGH POC
8.1 Nov 17

A heap-based buffer overflow in the HotSpot x86_64 Base64 decode intrinsic affects Oracle Java SE (8u511b33-perf, 17.0.2

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-2024-8883 MEDIUM POC
6.1 Sep 19

A misconfiguration flaw was found in Keycloak. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploita

CVE-2026-3047 HIGH
8.8 Mar 05

Keycloak's SAML identity provider broker fails to enforce client disabled status during IdP-initiated SSO flows, allowin

CVE-2026-9704 HIGH
8.8 May 27

Privilege escalation in Red Hat Build of Keycloak allows low-privileged authenticated users to assume the permissions of

CVE-2026-9689 MEDIUM POC
4.2 May 27

HTTP parameter pollution in Keycloak enables authentication bypass against deployments where OAuth/OIDC client applicati

CVE-2026-3009 HIGH
8.1 Mar 05

Keycloak's IdentityBrokerService.performLogin endpoint fails to enforce disabled Identity Provider restrictions, allowin

CVE-2024-7885 HIGH
7.5 Aug 21

A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across

CVE-2024-7341 HIGH
7.1 Sep 09

A session fixation issue was discovered in the SAML adapters provided by Keycloak. Rated high severity (CVSS 7.1), this

CVE-2024-10234 HIGH
7.3 Oct 22

A vulnerability was found in Wildfly, where a user may perform Cross-site scripting in the Wildfly deployment system. Ra

CVE-2026-9802 MEDIUM
6.8 May 28

Refresh token replay in Keycloak allows a remote attacker who has previously captured a user's refresh token to reuse th

CVE-2024-4629 MEDIUM
6.5 Sep 03

A vulnerability was found in Keycloak. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no

Vendor StatusVendor

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