Bug 2530989

Summary: CVE-2026-87853 sssd: sssd: IdP authentication prefix comparison allows cross-user impersonation [fedora-all]
Product: [Fedora] Fedora Reporter: Samuele Negrini <snegrini>
Component: sssdAssignee: Alexey Tikhonov <atikhono>
Status: ON_QA --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: abokovoy, atikhono, lslebodn, pbrezina, sbose, ssorce, sssd-maintainers
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["dc0e67b9-019a-4a14-80c9-3961f22f3b90"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2530888    

Description Samuele Negrini 2026-09-09 14:27:30 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in SSSD's IdP authentication provider. The eval_access_token_buf() function in src/providers/idp/idp_auth_eval.c compares the authenticated user's OIDC subject identifier against the requested user's stored SYSDB_UUID using strncmp() with the authenticated identifier's length as the count. This performs a prefix comparison rather than an exact match. An attacker whose complete IdP identifier is a strict prefix of a target user's identifier can authenticate as the target, gaining full access to the target's account, files, groups, and local authorization. With Keycloak's built-in LDAP provider (Import Users disabled), the identifier format f:<federation_id>:<username> naturally produces prefix relationships for usernames like 'admin' and 'administrator'. No victim credential, interaction, or administrative role is required.

Comment 1 Alexey Tikhonov 2026-09-09 15:27:34 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/9250

Comment 2 Alexey Tikhonov 2026-09-10 11:14:07 UTC
Fixed upstream via https://github.com/SSSD/sssd/commit/f3a324918c1a35bd0195a1de5b17897a0d3b6274