cve.bz

CVE-2026-9791 redhat build of keycloak: Incorrect Authorization

4.3 mediumEPSS 0.2%Fix available

Medium (4.3) in redhat build of keycloak. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-server-spi-private 26.6.3.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-9791 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-9791?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-9791?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-9791 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-9791

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-9791](https://cve.bz/cve/badge/CVE-2026-9791.svg)](https://cve.bz/cve/CVE-2026-9791)

HTML:

<a href="https://cve.bz/cve/CVE-2026-9791"><img src="https://cve.bz/cve/badge/CVE-2026-9791.svg" alt="CVE-2026-9791"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat build of Keycloak 26.426.4.13-1
Red Hat build of Keycloak 26.426.4-19
Red Hat build of Keycloak 26.626.6.3-3
Red Hat build of Keycloak 26.626.6-6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4q93-v92x-p89fMavenorg.keycloak:keycloak-server-spi-private>=26.5.0 <26.6.326.6.3
GHSA-4q93-v92x-p89fMavenorg.keycloak:keycloak-services>=26.5.0 <26.6.326.6.3
GHSA-4q93-v92x-p89fMavenorg.keycloak:keycloak-server-spi-private<=26.4.7no fix published
GHSA-4q93-v92x-p89fMavenorg.keycloak:keycloak-services<=26.4.7no fix published

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Keycloak fails to enforce the disabled state of the Organizations feature on user-facing APIs, allowing authenticated users to retrieve organization membership data and obtain tokens with organization claims even after an administrator has disabled the feature at the realm level.

Red Hat's mitigation

Administrators should verify that disabling the Organizations feature properly blocks all organization-related functionality. Consider implementing additional access controls or removing organization memberships before disabling the feature.

ProductPackageStateAdvisory
Red Hat build of Keycloak 26.4rhbk/keycloak-operator-bundle:26.4.13-1Fixed 2026-06-25RHSA-2026:30050
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9:26.4-19Fixed 2026-06-25RHSA-2026:30050
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9-operator:26.4-19Fixed 2026-06-25RHSA-2026:30050
Red Hat build of Keycloak 26.4.13rhbk/keycloak-rhel9Fixed 2026-06-25RHSA-2026:30049
Red Hat build of Keycloak 26.6rhbk/keycloak-operator-bundle:26.6.3-3Fixed 2026-06-10RHSA-2026:25097
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9:26.6-6Fixed 2026-06-10RHSA-2026:25097
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9-operator:26.6-6Fixed 2026-06-10RHSA-2026:25097
Red Hat build of Keycloak 26.6.3rhbk/keycloak-rhel9Fixed 2026-06-10RHSA-2026:25098

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-9791.

References

Check your stackJSON