Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid Keycloak session token
-
DeliveryAdmin issues client-level revocation
-
ExploitTokenManager checks realm policy (non-zero, older timestamp)
-
ExecutionClient-level revocation silently bypassed
-
PersistRefresh token exchanged for new access token
-
ImpactAccess user data and maintain session post-revocation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
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 all of the following to be true simultaneously: (1) the attacker or user holds a valid Keycloak refresh token or access token issued before the administrator's revocation attempt, (2) the Keycloak security realm has a pre-existing non-zero 'not-before' timestamp set at the realm level from a prior revocation action, (3) the administrator targets only the client (application) level for the new revocation without also updating the realm-level policy, and (4) the existing realm-level timestamp predates the intended client-level revocation time. CVSS PR:L confirms valid token possession is required - unauthenticated actors cannot exploit this. What limits exploitation further: AC:H indicates the specific realm/client policy timing configuration must already be in place, ruling out default or freshly deployed instances; the attacker must have obtained a token through prior legitimate or compromised access; and exploitation is only relevant when a revocation event occurs, narrowing the attack surface to incident-response windows. |
| Impact | The CVSS 4.2 score with vector AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N reflects a meaningful but conditional risk. AC:H is the critical modifier: exploitation requires the realm to already have a pre-existing non-zero 'not-before' policy, which limits exposure to deployments with prior revocation history - not default or freshly-deployed Keycloak instances. PR:L confirms the attacker must already possess a valid token, making this a post-compromise persistence or incident-response-evasion scenario rather than an initial access vector. No EPSS score was provided in the available data, leaving exploitation probability unquantified. No CISA KEV listing and no POC are identified, suggesting this has not been observed in active exploitation. Real-world priority is highest for organizations actively using token revocation as a security control during incident response or employee offboarding - in those contexts, the silent failure of a critical security action is operationally severe regardless of the moderate CVSS score. |
| Exploit ScenarioDerived | During a security incident, an administrator revokes tokens for a compromised service account in a specific client application using the Keycloak admin console's 'not-before' push. Because the realm was configured with an older non-zero revocation policy from a prior administrative action, the new client-level revocation is silently skipped by TokenManager. The compromised account continues to successfully call the token refresh endpoint and access /userinfo, maintaining an active session and data access that the administrator believes has been terminated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Token revocation bypass in Keycloak's TokenManager component allows sessions and user data access to persist after administrative invalidation. The flaw (CWE-862: Missing Authorization) causes client-level 'not-before' revocation policies to be silently skipped when a realm-level revocation policy with an older, non-zero timestamp is already in place - causing the revocation to produce no effect. Authenticated token holders (PR:L) can continue refreshing sessions and querying user information APIs despite explicit administrative revocation. No public exploit identified at time of analysis; KEV status is not confirmed.
RemediationAI
Administrators should apply vendor-released patches for Red Hat Build of Keycloak, Red Hat Single Sign-On 7, and the affected JBoss EAP Expansion Pack components; exact patched versions are not specified in the available data and must be confirmed via the Red Hat Security Advisory at https://access.redhat.com/security/cve/CVE-2026-18218 and Bugzilla entry https://bugzilla.redhat.com/show_bug.cgi?id=2508313. As a compensating control prior to patching, administrators can update the realm-level 'not-before' policy to a current timestamp whenever issuing a client-level revocation - this ensures the realm policy timestamp is newer than the client revocation, preventing the silent bypass. The trade-off is that updating the realm-level policy causes mass token invalidation across all clients in the realm, forcing all users to re-authenticate, not just those of the targeted application. For high-sensitivity revocation scenarios, temporarily elevating the realm 'not-before' timestamp immediately before and after issuing a client revocation provides a narrow window of correct enforcement.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak implements token lifecycle management through 'not-before' policies, which invalidate tokens issued before a designated timestamp. These policies exist at two scopes: the security realm (global) and individual clients (applications). The TokenManager component is responsible for enforcing revocation during token refresh and userinfo requests. CWE-862 (Missing Authorization) manifests here as a missing or incorrectly ordered comparison between the realm-level and client-level policy timestamps - when the realm policy is older but non-zero, the client-level revocation check is bypassed entirely rather than taking the stricter of the two values. CPE data confirms affected products include Red Hat Build of Keycloak, Red Hat Single Sign-On 7, Red Hat Data Grid 8, and Red Hat JBoss Enterprise Application Platform Expansion Pack, all of which incorporate Keycloak's token management subsystem.
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:L/A:N
AC:H reflects the mandatory pre-existing realm revocation policy prerequisite; PR:L because a valid token is required; no availability impact applies.
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
A flaw was found in the TokenManager component of the Keycloak identity management service. When an administrator attempts to revoke tokens for a specific application (client) using a "not-before" policy, the revocation may be silently ignored if the overall security realm already has an older, non-zero revocation policy in place. This issue can allow previously issued tokens to remain valid for refreshing sessions and accessing user information even after an administrator has attempted to invalidate them. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
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)NVD
More 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
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
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
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
EUVD-2026-51478
GHSA-vhxw-j6h3-48jm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB