Skip to main content

Red Hat Keycloak CVE-2026-9791

| EUVDEUVD-2026-32701 MEDIUM
Incorrect Authorization (CWE-863)
2026-05-28 redhat GHSA-4q93-v92x-p89f
4.3
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege org member
  2. Delivery
    Request OIDC token with 'organization' scope
  3. Exploit
    Receive org metadata claims despite feature disabled
  4. Execution
    Present token to downstream resource server
  5. Impact
    Resource 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.keycloak:keycloak-server-spi-private fix: 26.6.3
maven org.keycloak:keycloak-services fix: 26.6.3

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

Vendor (redhat) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.0%
Top 92% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-16442 CRITICAL
9.8 Aug 05

Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML

CVE-2026-16443 CRITICAL
9.1 Aug 05

Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge

CVE-2026-15572 HIGH
8.8 Aug 05

Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil

CVE-2026-93569 HIGH
8.2 Sep 18

Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat

CVE-2026-9800 HIGH
8.1 Jun 25

Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con

CVE-2026-15573 HIGH
8.1 Aug 05

URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re

CVE-2026-16102 HIGH
8.1 Aug 05

Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou

CVE-2026-18214 HIGH
8.1 Jul 31

Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho

CVE-2026-11800 HIGH
8.1 Jun 25

Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re

CVE-2026-18215 HIGH
8.1 Jul 31

Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro

CVE-2026-18967 HIGH
8.1 Aug 06

Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy