CVE-2026-137435 PUBLISHED

Keycloak-services: keycloak-services: case-distinct saml nameid allows authentication as another account

Assigner: redhat
Reserved: 26.11.2026 Published: 26.11.2026 Updated: 26.11.2026

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.

Product Status

Vendor Red Hat
Product Red Hat Build of Keycloak
Versions Default: affected
Vendor Red Hat
Product Red Hat Build of Keycloak
Versions Default: affected
Vendor Red Hat
Product Red Hat Single Sign-On 7
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Single Sign-On 7
Versions Default: unaffected

Workarounds

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.

Credits

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

References

Problem Types

  • Improper Handling of Case Sensitivity CWE