Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege org member
-
DeliveryRequest OIDC token with 'organization' scope
-
ExploitReceive org metadata claims despite feature disabled
-
ExecutionPresent token to downstream resource server
-
ImpactResource server grants incorrect org-based access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to be an authenticated Keycloak user with pre-existing organization membership - anonymous or newly created users without prior org enrollment cannot trigger this flaw. The Organizations feature must have been previously enabled and the user enrolled, then an administrator must have subsequently disabled the Organizations feature intending to revoke org-based access; the flaw manifests precisely in this post-disable state. Exploitation occurs via the account API or by requesting an OIDC token with the 'organization' scope included. Per CVSS PR:L, low-privilege authenticated access is sufficient - no administrative role is required. Factors that limit exploitation: requires valid credentials (not unauthenticated per PR:L), requires prior organizational membership enrollment, and the downstream impact depends on whether resource servers actually consume and act on organization claims in tokens. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N reflects a network-reachable, low-complexity exploit requiring only low-privileged authenticated access with no user interaction, limited to a confidentiality impact and no scope change. The base score of 4.3 (Medium) is consistent with an information disclosure issue rather than a critical compromise path. However, the real-world risk is context-dependent: if downstream resource servers rely on the 'organization' claim in tokens to gate access to sensitive resources, the incorrect claim could elevate the effective impact beyond what CVSS captures - essentially acting as an authorization bypass within the resource server's logic. No EPSS data was provided, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV, and no POC has been identified at time of analysis. The limiting factor - requirement for an authenticated user who has pre-existing organization membership - substantially reduces the exploitable population compared to an unauthenticated vector. Organizations that have disabled the Organizations feature specifically to revoke org-based access controls face the highest residual risk. |
| Exploit ScenarioDerived | An authenticated user who was previously enrolled in a Keycloak organization - before an administrator disabled the Organizations feature - sends an OIDC token request to the Keycloak token endpoint including 'organization' in the requested scopes. Despite the feature being administratively disabled, Keycloak returns a token containing organization metadata claims. The user presents this token to a resource server that evaluates the 'organization' claim to determine access rights, causing the resource server to grant access based on organizational membership that the administrator intended to revoke. No public POC code has been identified, but the attack is straightforward for any user who retains their prior organization membership state. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Incorrect authorization enforcement in Red Hat Build of Keycloak allows an authenticated user with existing organization membership to retrieve organization metadata through the account API or via OIDC token requests using the 'organization' scope, even when an administrator has explicitly disabled the Organizations feature. The flaw (CWE-863) means the feature-disabled state is not enforced at the data-access layer, so tokens and API responses continue to carry organization claims. This can cause downstream resource servers that consume those tokens to make incorrect authorization decisions - for example, granting access based on organizational membership that should no longer be recognized. No public exploit code exists and this vulnerability is not listed in CISA KEV at time of analysis.
RemediationAI
No specific patched version number is confirmed in the available data - the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-9791 should be monitored for an official errata release containing the fix version. As a compensating control while awaiting the patch, administrators should audit OIDC client configurations to remove or restrict the 'organization' scope from clients used by potentially affected users, which prevents the scope from being requested and limits token enrichment with org metadata; the trade-off is that legitimate organization-aware clients will also lose this scope. Additionally, resource servers should not make authorization decisions solely on the 'organization' claim without cross-validating against a server-side authoritative source, which mitigates the downstream incorrect authorization risk independent of the Keycloak fix. Access to the account API endpoint for users with prior organizational membership can also be restricted at the network or gateway layer as a temporary measure, though this impacts legitimate self-service account management functionality.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak is Red Hat's enterprise-grade Identity and Access Management (IAM) platform, built on the upstream Keycloak project. Its Organizations feature allows grouping of users under organizational tenants with associated metadata embedded in OIDC tokens. The affected component is the token issuance and account API layer: when a user requests an OIDC token with the 'organization' scope or queries the account API, Keycloak should suppress organization claims if the Organizations feature has been administratively disabled. CWE-863 (Incorrect Authorization) describes the root cause - the authorization gate that checks feature-enablement status is not applied consistently across these user-facing endpoints, allowing residual org metadata to surface. The affected product per CPE is cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*, with the wildcard version field indicating no version exclusion is recorded in NVD CPE data.
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.
Blast Radius
ecosystem impact- 50 maven packages depend on org.keycloak:keycloak-services (22 direct, 28 indirect)
Ecosystem-wide dependent count for version 26.5.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Keycloak Authentication and Authorization Flaws
View all 6More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re
Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou
Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho
Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re
Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro
Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut
EUVD-2026-32701
GHSA-4q93-v92x-p89f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB