REDHAT-BUG-2503138: High severity Keycloak keycloak-services vulnerability
A vulnerability was found in the keycloak-services component where the SAML IdP-initiated broker login endpoint fails to enforce the link-only identity provider restriction. When a SAML identity provider is configured with linkOnly=true, it is intended to only allow users to link their accounts, not to use that provider for logging in. However, the endpoint at /realms/{realm}/broker/{alias}/endpoint/clients/{clientid} does not validate this setting. An attacker who controls an upstream SAML identity already linked to a Keycloak user can submit a valid signed SAML response directly to this endpoint. This allows the attacker to bypass the restriction and obtain a full authenticated session as the linked local user.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2503138?
The severity of REDHAT-BUG-2503138 is classified as high with a score of 7.
What does the vulnerability REDHAT-BUG-2503138 affect?
REDHAT-BUG-2503138 affects the keycloak-services component of Keycloak.
How does REDHAT-BUG-2503138 impact security?
REDHAT-BUG-2503138 allows unauthorized users to link their accounts through a vulnerable SAML IdP-initiated broker login endpoint.
How do I fix REDHAT-BUG-2503138?
To fix REDHAT-BUG-2503138, ensure that the link-only identity provider restriction is properly enforced in your Keycloak configuration.
When was REDHAT-BUG-2503138 published?
REDHAT-BUG-2503138 was published on July 21, 2026.