CVE-2026-9799: Keycloak UMA Authorization Bypass in Permissive Mode
A vulnerability in Keycloak's User-Managed Access (UMA) system allows an authenticated user to bypass access controls by crafting a specific permission request. If a user has legitimate access to one resource via UMA, they can potentially manipulate their request to gain unauthorized access to all similar resources in the same resource server—even ones they should not have permission to access. This only happens in Keycloak instances configured with permissive policy enforcement mode on typed resources with owner-managed access enabled. The impact is limited to information disclosure or unauthorized modification, not system availability.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.6 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- Weaknesses (CWE)
- CWE-639
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-25 / 2026-07-01
NVD description (verbatim)
A flaw was found in org.keycloak.authorization. An authenticated user with a granted User-Managed Access (UMA) permission ticket for one resource can exploit this by using a specific permission request prefix to bypass per-resource access control. This allows the user to gain unauthorized access to all resources of that type within the same resource server, even if they do not have a ticket for those specific resources. This vulnerability requires the resource server to be configured in PERMISSIVE policy enforcement mode and affects typed resources with ownerManagedAccess enabled, where no explicit policy protects the resource type. The primary consequence is unauthorized information disclosure or modification of resources.
6 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-9799 is an authorization bypass in org.keycloak.authorization affecting Red Hat Build of Keycloak. An authenticated principal possessing a UMA permission ticket for resource A can craft a permission request using a specific prefix that bypasses per-resource access control checks, granting access to resources B, C, etc. of the same type within the resource server. The flaw arises from insufficient validation of permission request parameters when resources are typed, owner-managed, and lack explicit protective policies. Exploitation requires: (1) authentication; (2) existing UMA grant for at least one resource; (3) PERMISSIVE policy enforcement mode enabled; and (4) target resources configured with ownerManagedAccess without hardened policy guards. CWE-639 (Authorization Bypass Through User-Controlled Key) maps to the root cause.
Business impact
The vulnerability permits authenticated insiders or compromised accounts to access or modify resources beyond their intended scope. In multi-tenant or data-segregated environments using UMA, this could lead to cross-resource data leakage or unauthorized edits. The medium CVSS score reflects the requirement for authentication and user interaction, as well as the confidentiality and integrity impact. Availability is not affected. Organizations using Keycloak for fine-grained access control—particularly those managing sensitive documents, healthcare records, or financial data across resource types—face elevated risk if their deployment matches the vulnerable configuration profile.
Affected systems
Red Hat Build of Keycloak is explicitly affected. The vulnerability is configuration-dependent: it manifests only when (1) the resource server uses PERMISSIVE policy enforcement mode, (2) resources are typed with ownerManagedAccess enabled, and (3) no explicit authorization policy protects the resource type. Installations using ENFORCING mode, untyped resources, or resources with hardened policies are not vulnerable. Organizations should audit their Keycloak resource server configurations and policy enforcement settings to determine exposure.
Exploitability
Exploitation requires authentication and valid UMA credentials for at least one resource. An attacker must know or discover the permission request prefix pattern that triggers the bypass and must target a resource server in the vulnerable configuration state. The CVSS vector (AC:L, PR:L, UI:R) indicates low attack complexity, low privilege requirements (authenticated user suffices), and user interaction (likely a legitimate permission request that the user initiates). Practical exploitation is moderately straightforward for an insider with UMA access but requires specific knowledge of the prefix mechanism and target resource server configuration.
Remediation
Apply a security patch from Red Hat that remediates the authorization validation logic in org.keycloak.authorization. Red Hat typically releases patches through the standard update channels. Additionally, as a compensating control, configure affected resource servers to use ENFORCING policy enforcement mode instead of PERMISSIVE, and ensure all typed resources with ownerManagedAccess are protected by explicit authorization policies. Organizations should verify their UMA configurations and test access control boundaries in lower environments before deployment.
Patch guidance
Verify availability of a patched Red Hat Build of Keycloak release that addresses this authorization bypass. Consult the Red Hat security advisory corresponding to CVE-2026-9799 for specific version numbers and update instructions. Test patches in a staging environment to confirm UMA functionality and policy behavior remain intact. Prioritize patching for production Keycloak instances configured with PERMISSIVE mode on typed, owner-managed resources.
Detection guidance
Monitor Keycloak audit logs for permission requests with unusual prefixes or requests that succeed across resource boundaries when issued by a single principal. Audit the effective resource server policies to identify which are in PERMISSIVE mode with typed, unprotected resources. Review UMA permission ticket grants and cross-reference with actual resource access patterns for anomalies. Implement alerting on failed permission checks that subsequently succeed, which may indicate exploitation attempts. Validate that authorization policies are properly evaluated by performing permission request tests from controlled test accounts.
Why prioritize this
Although the CVSS score is medium (4.6), prioritization depends on deployment profile. Organizations running Keycloak with PERMISSIVE enforcement on sensitive typed resources should treat this as high-priority; those using ENFORCING mode or without ownerManagedAccess are lower-priority. The flaw permits lateral privilege escalation within a resource server and data exfiltration, making it material for any organization relying on Keycloak for access control enforcement. Early patching is recommended given the authentication-free nature of post-exploitation access.
Risk score, explained
CVSS 3.1 base score 4.6 (MEDIUM) reflects: (1) network-accessible attack vector (AV:N); (2) low attack complexity requiring only crafted permission requests (AC:L); (3) low privilege threshold—any authenticated user suffices (PR:L); (4) user interaction requirement, suggesting a user-initiated permission workflow (UI:R); (5) confidentiality impact from unauthorized resource reading (C:L); (6) integrity impact from unauthorized resource modification (I:L); (7) no availability impact (A:N); (8) unchanged scope (S:U). The score is moderate rather than high due to authentication and configuration prerequisites, but organizations in vulnerable configurations should elevate their internal risk assessment accordingly.
Frequently asked questions
Does this affect all Keycloak installations?
No. The vulnerability requires a specific configuration: PERMISSIVE policy enforcement mode, typed resources with ownerManagedAccess enabled, and no explicit policies protecting the resource type. Installations using ENFORCING mode or without owner-managed access are not vulnerable.
Can an unauthenticated attacker exploit this?
No. The CVE requires authentication; an attacker must possess valid Keycloak credentials and a UMA permission ticket for at least one resource. This is an insider or compromised-credential risk.
What is the main impact?
An authenticated user can read or modify resources they should not have access to, provided those resources are of the same type as one they do have a ticket for. Availability and system integrity are not affected.
When should we patch?
Immediately, if your Keycloak instances are configured with PERMISSIVE enforcement and typed, owner-managed resources without protective policies. Check the Red Hat security advisory for patch availability and compatible versions.
This analysis is provided for informational purposes and reflects publicly available data as of the publication date. Actual risk and exploitability may vary based on organizational deployment configuration, patch status, and network controls. Organizations should independently verify vendor advisories, test patches in controlled environments, and conduct internal risk assessments. SEC.co makes no warranty regarding the completeness or accuracy of this analysis and disclaims liability for decisions made based on this content. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-9099HIGHKeycloak Group Reparenting Authorization Bypass – Privilege Escalation to Realm Takeover
- CVE-2023-40200MEDIUMWP Logo Showcase Authorization Bypass Vulnerability (CVSS 5.3)
- CVE-2025-15657MEDIUMUnauthenticated IDOR in School Management – Patch Guidance
- CVE-2026-10023MEDIUMDokan WooCommerce Plugin Order Tampering Vulnerability
- CVE-2026-10038MEDIUMCharitable WordPress Plugin IDOR Arbitrary Attachment Deletion Vulnerability
- CVE-2026-10154MEDIUMDolibarr ERP CRM Authorization Bypass in Messaging Module
- CVE-2026-10212MEDIUMAstrBot 4.24.2 Authorization Bypass via Session ID Manipulation
- CVE-2026-10597MEDIUMOMICARD EDM Unauthenticated Email Disclosure Vulnerability