ZeroHour

CVE-2026-87853

large

Prefix-only token check in SSSD IdP provider allows OIDC user impersonation

CVSS 3.1
7.5 high
EPSS
<1%p20
Published
()
Modified
AI analysis

SSSD's IdP authentication provider, which lets Linux systems authenticate users against OpenID Connect (OIDC) identity providers, contains a partial-comparison flaw (CWE-187): the eval_access_token_buf() function uses strncmp() bounded by the authenticated user's identifier length, so the OIDC subject identifier is accepted on a prefix match instead of an exact match. An attacker who holds an account at the connected IdP whose subject identifier is a strict prefix of a target user's identifier (for example 'alice' versus 'alice.smith') can complete authentication and be treated as the target user, gaining that user's access on the host, with high confidentiality and integrity impact. Any Linux deployment running a vulnerable SSSD build with the IdP (OIDC) provider configured is affected; the CNA is Red Hat, so enterprise RHEL estates using OIDC-based sign-in are the primary concern. No public proof-of-concept, inclusion in CISA KEV, or known in-the-wild exploitation has been reported as of this analysis.

What to do: Patch SSSD via your distribution's security errata (watch for the Red Hat advisory, as no fixed version is stated in the available data). Until patched, audit the IdP subject identifiers configured on your IdP for prefix relationships between accounts and enforce uniqueness, or disable the IdP (OIDC) authentication provider on hosts that do not need it. Check your sssd.conf to determine whether hosts use the IdP provider at all, since SSSD deployments using LDAP/AD/FreeIPA providers are not exposed through this code path.

Affected
Red Hat SSSD (System Security Services Daemon) - IdP authentication provider
Estimated exposure
large≈tens of thousands of Linux hosts (SSSD ships with RHEL/Fedora/CentOS across millions of systems, but only hosts configured to use the newer OIDC/IdP provider… — SSSD is the standard identity stack bundled with major enterprise Linux distributions and runs on millions of servers, but the vulnerable code path is only exercised when the relatively new OpenID Connect (IdP) authentication provider is…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

A flaw was found in SSSD's IdP authentication provider. The eval_access_token_buf() function compares the OIDC subject identifier using strncmp() with the authenticated user's identifier length, performing a prefix comparison instead of an exact match. An attacker whose IdP identifier is a strict prefix of a target user's identifier can authenticate as the target user.

Weakness
CWE-187
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.