Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess Keycloak SingleUseObjectProvider endpoint
-
ExploitForge authorization code without type isolation
-
ExecutionExchange forged code for access token
-
ImpactCreate admin-capable token via privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Component isolation
|
| Exploitation Conditions | Keycloak installations with SingleUseObjectProvider enabled (default configuration). Remote unauthenticated attacker can forge authorization codes. Requires knowledge of valid client IDs and redirect URIs. No victim interaction needed. Affects Keycloak versions using vulnerable SingleUseObjectProvider without proper type/namespace isolation. |
| Impact | This vulnerability presents elevated real-world risk despite requiring high attack complexity. The CVSS 7.4 score reflects critical factors: network-based attack vector (AV:N) requiring no user interaction (UI:N) or privileges (PR:N), with high impact to confidentiality and integrity (C:H/I:H). The AC:H rating suggests exploitation requires sophisticated understanding of Keycloak's internal token management, precise timing, or specific environmental conditions-likely involving race conditions or collisions in the key-value store. No confirmed active exploitation exists (not present in CISA KEV), and no public exploit code has been identified, reducing immediate risk. However, the privilege escalation potential to admin-level access makes this a critical concern for identity infrastructure. Organizations using Keycloak as their authentication backbone face substantial risk if exploited, as admin tokens grant full control over user accounts, clients, and realm configuration. The lack of authentication requirements (PR:N) significantly lowers the barrier for remote attackers who can reach the Keycloak server. SSVC consideration: while not currently automatable due to AC:H complexity, the technical impact (admin access) is severe, warranting prioritized patching in production IAM deployments. |
| Exploit ScenarioDerived | An unauthenticated attacker with network access to a Keycloak server identifies the SingleUseObjectProvider's namespace isolation weakness through reconnaissance of the token endpoint behavior. The attacker crafts a series of carefully-timed requests that insert malicious entries into the global key-value store, exploiting the lack of type checking to create entries that appear as legitimate authorization codes to Keycloak's token validation logic. By presenting this forged authorization code to the token endpoint, the attacker bypasses the normal OAuth 2.0 authentication flow and receives a valid access token with administrative privileges. With the admin token, the attacker gains full control over the Keycloak realm, including the ability to create backdoor accounts, extract credential hashes, modify client configurations, and potentially pivot to protected downstream applications trusting Keycloak's authentication assertions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 02, 2026
Authorization code forgery in Red Hat Keycloak enables unauthenticated attackers to escalate privileges to admin-level access tokens. The SingleUseObjectProvider's lack of type and namespace isolation permits attackers to forge valid authorization codes remotely, though exploitation requires high complexity (AC:H). No public exploit identified at time of analysis, with CVSS 7.4 indicating high confidentiality and integrity impact but no availability disruption.
RemediationAI
Organizations should immediately consult Red Hat's security advisory at https://access.redhat.com/security/cve/CVE-2026-4282 for official patching guidance and affected version specifics. As of this analysis, no independently confirmed patched version number is available in the provided data sources, indicating this may be a recently disclosed vulnerability with patches pending or under embargo. Monitor Red Hat's Customer Portal and the Bugzilla ticket at https://bugzilla.redhat.com/show_bug.cgi?id=2448061 for updated remediation instructions and fixed builds. Interim risk mitigation strategies should include network segmentation to restrict Keycloak server accessibility to trusted networks only, implementing additional network-layer authentication for token endpoints, and enabling comprehensive audit logging for authorization code issuance and token generation to detect anomalous patterns. Review and minimize the number of admin-privileged service accounts and implement strict monitoring for new admin token creation. If possible without breaking functionality, consider temporarily restricting authorization code flow grants to only essential clients until patches are deployed.
Affected Packages
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 is Red Hat's open-source identity and access management solution implementing OAuth 2.0, SAML 2.0, and OpenID Connect protocols. The vulnerability resides in the SingleUseObjectProvider component, a global key-value store used for tracking single-use tokens like authorization codes and nonces. The flaw represents CWE-653 (Insufficient Compartmentalization), where the provider fails to properly isolate objects by type and namespace. This architectural weakness allows attackers to manipulate the authorization code flow-a critical OAuth 2.0 mechanism where temporary codes are exchanged for access tokens. Without proper isolation, an attacker can craft malicious entries in the global store that the token endpoint accepts as legitimate authorization codes, bypassing the standard authentication flow entirely. The affected CPE indicates all versions of Red Hat Build of Keycloak are potentially vulnerable, suggesting this is a fundamental design issue rather than a localized code defect.
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:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
Lifecycle Timeline
2DescriptionCVE.org
A flaw was found in Keycloak. The SingleUseObjectProvider, a global key-value store, lacks proper type and namespace isolation. This vulnerability allows an unauthenticated attacker to forge authorization codes. Successful exploitation can lead to the creation of admin-capable access tokens, resulting in privilege escalation.
Blast Radius
ecosystem impact- 54 maven packages depend on org.keycloak:keycloak-services (26 direct, 28 indirect)
Ecosystem-wide dependent count for version 26.5.7.
Executive ViewAI
Red Hat Keycloak contains an authorization code forgery vulnerability (CVE-2026-4282, CVSS 7.4) that allows unauthenticated attackers to forge admin-level access tokens, potentially compromising identity and access management across all dependent applications. This affects any organization using Keycloak for authentication and authorization, creating risk of unauthorized administrative access to sensitive systems and data.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement network segmentation to restrict Keycloak admin console access to trusted IP ranges only; (2) Deploy enhanced monitoring on token generation endpoints to detect anomalous authorization code requests; (3) Enforce multi-factor authentication for all admin-level Keycloak operations; (4) Reduce authorization code lifetime to minimum viable duration; (5) Implement rate limiting on authorization endpoints; (6) Review and revoke any unexplained admin-level access tokens issued within past 90 days. Monitor Red Hat security advisories for patch availability weekly.
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
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Keycloak Authentication and Authorization Bypass
View all 5More 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-18208
GHSA-hj93-h7pg-fh6v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB