CVE-2026-143801: Keycloak-services: keycloak-services: admin rest users/count endpoint ignores per-user view permissions
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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Keycloak administrator with restricted permissions can exploit it. The attack requires high privileges, but does not require user interaction.
Is a default deployment affected?
The issue depends on having an administrator whose permissions are restricted on a per-user basis. The provided information does not establish whether default Keycloak role assignments create that condition.
What information could be exposed?
The count endpoint can act as an oracle for discovering sensitive user information that the administrator is not permitted to view, including usernames, email addresses, and custom attributes.
How can an organization determine whether it is exposed?
Review whether restricted administrators can call the Admin REST API users/count endpoint and whether those administrators are subject to per-user view permissions. If so, they may be able to infer information about users outside their authorized view.