Skip to main content

Red Hat Keycloak CVE-2026-37978

| EUVDEUVD-2026-30882 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-05-19 redhat GHSA-rrv7-3mqf-hxfr
4.9
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Obtain or compromise 'view-clients' admin credential
  2. Delivery
    Authenticate to Keycloak Admin REST API over network
  3. Exploit
    Invoke evaluate-scopes endpoint with arbitrary userId values
  4. Execution
    Enumerate realm user identities, claims, and authorization grants
  5. Impact
    Exfiltrate PII for realm users

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires an authenticated session to the Keycloak Admin REST API using credentials that hold at minimum the 'view-clients' role within the target realm; this is confirmed by the CVSS PR:H (High Privileges Required) designation. The 'evaluate-scopes' Admin API endpoint must be reachable over the network - if the Admin API is firewalled to trusted hosts only, remote exploitation is blocked. Exploitation does NOT require a realm administrator role or higher-privileged assignments. The vulnerability is NOT exploitable by unauthenticated users or by regular (non-admin) Keycloak end-users. Exploitation is limited to the confidentiality plane (no write access, no service disruption) and is scoped to the realm(s) the compromised admin account has access to. There is no dependency on a specific Keycloak configuration toggle or non-default feature - any deployment where 'view-clients' role assignments exist and the Admin API is network-accessible meets the exploitation conditions.

Impact

The CVSS base score of 4.9 (Medium) reflects a tension between the high confidentiality impact (C:H) and the high privilege prerequisite (PR:H). In practice, exploitation requires a valid Keycloak admin credential with the 'view-clients' role, which substantially limits the exposed population to insider threats, account compromise scenarios, or over-provisioned service accounts. The unchanged scope (S:U) confirms that the attacker cannot pivot to broader system compromise through this vulnerability alone. No EPSS score was provided in the source data, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not listed in the CISA KEV catalog and no public proof-of-concept code has been identified, both of which reduce urgency for organizations without high-privilege account exposure. However, the PII leakage consequence is material for GDPR and compliance-sensitive deployments - the ability to enumerate realm-wide user identities and their authorization grants using a low-privilege role is a meaningful privilege escalation of information access. The attack complexity is low (AC:L), meaning once the prerequisite credential is obtained, exploitation requires no special knowledge or timing. Organizations with many delegated admins or externally accessible Admin API endpoints should treat this as a higher operational priority than the raw CVSS score implies.

Exploit ScenarioDerived

An insider threat actor - or an attacker who has compromised a service account or low-privilege admin credential - authenticates to Keycloak's Admin API using credentials that carry the 'view-clients' role. The attacker then iterates the evaluate-scopes endpoint with sequentially or randomly chosen userId values, harvesting user identities, email addresses, claims, and authorization grants for users across the entire realm without any additional escalation. No public proof-of-concept code has been identified at time of analysis, but the attack path requires only standard HTTP API calls and knowledge of the endpoint.

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 19, 2026

Unauthorized PII disclosure in Red Hat Build of Keycloak allows a low-privilege administrator holding only the 'view-clients' role to enumerate user identities and authorization grants across the entire realm by invoking the 'evaluate-scopes' Admin API endpoint with an arbitrary userId parameter. The vulnerability is an Insecure Direct Object Reference (CWE-639) in the Admin API layer, exploitable remotely over the network without requiring additional user interaction. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code has been identified at time of analysis, though the low attack complexity and clear abuse path make targeted insider or compromised-credential scenarios a realistic concern.

RemediationAI

No specific patched version number is confirmed in the available data; affected version boundaries and the fix release should be verified directly via the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-37978. Until a patch is applied, organizations should take the following specific compensating actions: audit and revoke unnecessary assignments of the 'view-clients' role across all realms, restricting it to accounts where it is operationally required; restrict network access to Keycloak's Admin API (typically /auth/admin/* or /admin/*) to trusted internal networks or management VLANs, blocking exposure from internet-facing or broadly accessible network segments; enable Keycloak's Admin API event logging to detect anomalous evaluate-scopes calls with varying userId parameters as an indicator of abuse; and review service accounts and CI/CD credentials that may hold the 'view-clients' role to ensure they are not over-provisioned. Note that restricting Admin API network access may impact legitimate administrative tooling and should be tested in non-production environments first.

Affected Packages

maven org.keycloak:keycloak-services fix: 26.6.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Keycloak's Admin REST API exposes an 'evaluate-scopes' endpoint designed to allow administrators to inspect the effective OAuth/OIDC scopes and claims for a given user-client pairing. The underlying flaw (CWE-639: Authorization Bypass Through User-Controlled Key) occurs because the API accepts a caller-supplied userId parameter without enforcing that the invoking principal's role permissions are scoped to that specific user or are sufficient to view cross-user identity data. A 'view-clients' role is a read-only, limited administrative role in Keycloak's fine-grained Admin permissions model - it is not intended to grant visibility into arbitrary users' identity attributes or authorization state. The CPE string cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:* indicates the wildcard version range affects all tracked releases of the Red Hat Build of Keycloak product line. The CVSS vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N confirms the vulnerability is network-reachable, requires no interaction, and produces high confidentiality impact with no integrity or availability consequences.

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.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Red Hat 4.9 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

DescriptionCVE.org

A flaw was found in Keycloak. A low-privilege administrator with the 'view-clients' role can exploit this by invoking the 'evaluate-scopes' Admin API endpoints with an arbitrary user ID (userId) parameter. This vulnerability allows for cross-role personally identifiable information (PII) leakage, enabling unauthorized visibility into user identities and authorizations across the realm. Exploitation is possible remotely via network access to the Admin API.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 61 maven packages depend on org.keycloak:keycloak-services (28 direct, 33 indirect)

Ecosystem-wide dependent count for version 26.6.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor 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

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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