External risk intelligence

Keycloak SAML Broker Vulnerability Allows Account Takeover

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2026-16442

Keycloak is an identity and access management solution. Its SAML broker and Single Sign-On endpoints are core, public-facing components by design, intended to handle authentication requests from users and external identity providers over the internet.

Halo Surface Signal: 5 out of 5 — more likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability has been identified in the SAML broker component of Keycloak, a system used for identity federation. This flaw allows an attacker who controls a linked upstream identity to bypass login restrictions and gain full access to a local user account by exploiting how the system handles single sign-on requests. The main concern is confirming relevance and exposure to understand potential impacts.

  • Bypass login restrictions to access user accounts.
  • Affects identity management and user authentication.
  • Confirm relevance and exposure for potential impact.

Attack Path

How an attacker could exploit the issue

An attacker with control over a linked upstream identity could exploit a weakness in Keycloak's SAML broker. By leveraging the IdP-initiated Single Sign-On endpoint without proper checks for account linking restrictions, the attacker can bypass login limitations. This allows them to gain unauthorized full access to a local user account on the Keycloak system.

  • Attacker controls a linked upstream identity.
  • Bypasses account linking restrictions via SSO endpoint.
  • Risk of unauthorized full account access.

Live Threat

Current exploitation, exposure, and threat context

The SAML broker component in Keycloak, when improperly configured, could allow an attacker to bypass authentication restrictions. This could occur when an identity provider (IdP) is set to only link accounts but the endpoint doesn't enforce this limitation, enabling an attacker controlling a linked upstream identity to gain unauthorized access to a local user account.

  • Local user account access.
  • Bypassing IdP restrictions on login.
  • Unauthorized access to user accounts.

Operational Fix

Recommended remediation, mitigation, and detection steps

This critical vulnerability in Keycloak's SAML broker impacts identity federation and authentication, potentially allowing unauthorized access to user accounts. The platform team, in coordination with security and vendor management, should prioritize identifying all Keycloak instances, assessing their exposure, and confirming business criticality. Ownership of remediation lies with the platform team, with initial verification focusing on instance reachability and impact, followed by planned patching or vendor engagement.

  • Platform team owns Keycloak instance remediation.
  • Verify external reachability and business impact.
  • Coordinate vendor updates and plan maintenance.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the Red Hat build of Keycloak?

Red Hat build of Keycloak is an open-source identity and access management platform. It acts as a central hub that allows organizations to manage user authentication and identity federation across various applications. By supporting protocols like SAML and OIDC, it enables users to sign in once to access multiple integrated services, simplifying security for developers and administrators.

What is the vulnerability in CVE-2026-16442?

This vulnerability is an Improper Validation of Specified Consistency, categorized as CWE-346. In simple terms, the SAML broker component fails to verify if an external identity provider is strictly authorized only for account linking. Because this check is missing during IdP-initiated single sign-on, the system erroneously trusts requests that should have been restricted, allowing a bypass of login controls.

How does an attacker trigger this CVE-2026-16442 flaw?

An attacker triggers this by first gaining control over an upstream identity provider already linked to the target Keycloak environment. They then leverage the IdP-initiated Single Sign-On endpoint to send a crafted request. It is important to note that this bug is not triggered by standard, direct user logins; it specifically requires the misuse of the SAML broker's trust relationship with an external identity provider.

Is my Keycloak instance at risk of being exploited?

According to Halo Surface Signal, Keycloak is designed to handle authentication requests over the internet, making its SAML broker and SSO endpoints inherently public-facing components. If your instance is reachable from the internet and utilizes external identity federation, the risk is elevated. You should evaluate if your configuration relies on these specific SAML broker endpoints for managing user authentication.

What should I do if I am running an affected Keycloak version?

First, identify all running instances of the Red Hat build of Keycloak to assess their reachability and business role. Since this involves identity infrastructure, coordinate with your platform and security teams to prioritize testing and applying vendor-supplied updates. Ensure you are moving to a version outside the affected ranges specified for your release branch to close the gap.

References