CVE-2026-137435

Description

A flaw was found in the SAML identity brokering component of Keycloak. When Keycloak is configured to use a database with case-insensitive collation, it may incorrectly match a SAML subject name to an existing user account if the names differ only by case. This issue allows an attacker to log in as a different user by providing a case-distinct version of a victim's username in a signed SAML assertion, leading to unauthorized account access.

Statement

The Red Hat Product Security team has assessed the severity of this vulnerability as Moderate, given that exploitation requires the underlying database to be configured with a case-insensitive collation for the federated identity table. Successful exploitation allows an attacker to obtain a valid access token and authenticate as a different user. The vulnerability's root cause is the improper handling of case sensitivity during the database lookup of federated identities without a subsequent case-sensitive verification in the application logic.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

Improperly handled case sensitive data can lead to several possible consequences, including: - case-insensitive passwords reducing the size of the key space, making brute force attacks easier - bypassing filters or access controls using alternate names - multiple interpretation errors using alternate names.

Acknowledgements

Red Hat would like to thank Blake Burkhart (Defense Unicorns) for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.