Bug 2589430 (CVE-2026-143801)

Summary: CVE-2026-143801 keycloak-services: keycloak-services: Admin REST users/count endpoint ignores per-user view permissions
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aschwart, aszczucz, boliveir, drichtar, mposolda, pjindal, rmartinc, ssilvert, sthorger, vmuzikar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Keycloak Admin REST API, which is used to manage users and configurations within a realm. The users/count endpoint fails to properly check if an administrator has permission to view specific users before including them in the total count. This allows a restricted administrator to use the count as an oracle to systematically discover sensitive user information, such as usernames, email addresses, and custom attributes, that they should not be able to access.
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:

Description OSIDB Bzimport 2026-12-03 05:58:59 UTC
A Missing Authorization flaw was found in the Keycloak Admin REST API users/count endpoint. While the primary users endpoint correctly restricts results based on the view-users permission, the companion count endpoint accepts the same filtering parameters but performs the count across all users in the realm without applying per-user authorization checks. An authenticated attacker with the query-users role can exploit this behavior by sending multiple filtered requests to the GET /admin/realms/{realm}/users/count endpoint. By observing the returned count, the attacker can perform a side-channel attack to reconstruct PII including usernames, email addresses, and first/last names, as well as verify the values of sensitive custom user attributes. This issue only affects realms where fine-grained admin permissions (v2) are not enabled.