CVE-2026-137435

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

Published Nov 26, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in Keycloak’s SAML identity brokering component causes it to use a case‑insensitive collation when matching a SAML subject name to an existing user account. If the database collation is case‑insensitive, a name that differs only by case can inadvertently match another account, allowing an attacker to impersonate that user by sending a signed SAML assertion with a case‑distinguishable username. This CWE‑178 insufficiently validated data comparison flaw provides unauthorized account access.

Affected Systems

Red Hat Build of Keycloak and Red Hat Single Sign‑On 7 are the affected products. The advisory does not assign specific version numbers; any installation that uses a database with a case‑insensitive collation and enables SAML identity brokering is susceptible.

Risk and Exploitability

The vulnerability is exploitable over the network via crafted SAML assertions; no pre‑existing code or public exploit is required. No official workaround is currently provided, and the issue is not listed in CISA KEV. The EPSS score is not available, so the precise likelihood of exploitation is unknown, but the potential for account hijacking warrants treating the risk as high in environments that rely on SAML integration. The likely attack vector is remote, through any network traffic carrying SAML assertions to the Keycloak service.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Await vendor patch; no remediation available at present
  • Configure the Keycloak database to use a case‑sensitive collation for identity brokering
  • Modify Keycloak configuration to enforce case‑sensitive comparison of SAML nameid values before user lookup
  • Restrict or disable SAML identity brokering for high‑privilege accounts until a vendor patch is released

Generated by OpenCVE AI on November 26, 2026 at 12:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Keycloak-services: keycloak-services: case-distinct saml nameid allows authentication as another account
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-178
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 26, 2026, 11:35 AM
Reserved
Nov 26, 2026, 11:06 AM
Status
Awaiting Analysis
Published
Nov 26, 2026, 12:17 PM
Modified
Nov 26, 2026, 12:17 PM