8000 [CVE-2026-133226] Account resource sharing grants scopes outside the resource definition · Issue #55381 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

[CVE-2026-133226] Account resource sharing grants scopes outside the resource definition #55381

Description

@abstractj

Describe the bug

The Account API lets a resource owner share an owned resource through PUT /realms/{realm}/account/resources/{id}/permissions. The endpoint does not check whether owner-managed access is enabled for the resource. It also accepts any scope defined on the resource server, including scopes that are not assigned to the shared resource. The endpoint then creates an already-granted permission ticket for that scope.

When the requesting party sends a ticketless UMA authorization request, Keycloak treats the granted ticket as authoritative, skips policy evaluation, and issues a Requesting Party Token (RPT) containing the unauthorized resource and scope. The corresponding Protection API path performs both checks, so the Account API is inconsistent with it.

The impact is limited to resources owned by the attacker. No access to another user's data and no concrete harmful action by the resource server was demonstrated.

Version

26.8.2

Expected behavior

The Account API rejects sharing when owner-managed access is not enabled for the resource, and rejects scopes that are not assigned to the shared resource, as the Protection API does. A ticketless UMA request only results in an RPT with scopes that belong to the resource.

Actual behavior

The Account API returns 204 No Content and persists a granted permission for a scope outside the resource definition, even when owner-managed access is disabled. The requesting party then obtains an RPT containing the resource and the unauthorized scope, without policy evaluation.


This issue was originally tracked in the private repository. Migrated by @abstractj.

Activity

  1. added
    area/authorization-services
    priority/important
    kind/cve
    severity/medium
    on Nov 19, 2026
  2. added theissue type on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/authorization-serviceskind/cvepriority/importantseverity/mediumteam/core-iam

    Type

    Fields

    No fields configured for cve.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0