CVE-2016-8629
Description
Red Hat Keycloak prior to 2.4.0 fails to enforce realm-level permissions, allowing authenticated service accounts to delete users in other realms.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Red Hat Keycloak prior to 2.4.0 fails to enforce realm-level permissions, allowing authenticated service accounts to delete users in other realms.
Vulnerability
Red Hat Keycloak versions before 2.4.0 do not correctly enforce cross-realm permission checks when processing service account user deletion requests via the REST API [1][2][3][4]. The vulnerability exists in the REST server endpoint that handles user deletion; the code path fails to restrict the scope of a service account's authorization to its own realm, enabling a request to specify a user in a different realm that should not be accessible [4].
Exploitation
An attacker must possess a valid service account within any realm of the Keycloak instance [1][2][3][4]. No additional authentication or privileges beyond standard service account authentication are required. The attacker crafts a REST API DELETE request targeting a user in a separate realm, which the flawed permission check allows [4].
Impact
Successful exploitation allows the attacker to delete any user account in any realm managed by the same Keycloak instance [1][2][3][4]. This results in unauthorized deletion of user identities, causing loss of availability for those users and potential service disruption for applications relying on those accounts.
Mitigation
The issue was fixed in Red Hat Keycloak version 2.4.0, released with RHSA-2017:0872 and RHSA-2017:0873 [1][2]. Users should upgrade to version 2.4.0 or later. Only service accounts that have been explicitly granted the necessary permissions should be allowed to delete users, and administrators should review existing service account configurations. No workaround is available for unpatched versions.
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.keycloak:keycloak-coreMaven | < 2.4.0 | 2.4.0 |
Affected products
2- Red Hat, Inc./Keycloakv5Range: 2.4.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
8- rhn.redhat.com/errata/RHSA-2017-0876.htmlghsavendor-advisoryx_refsource_REDHATWEB
- access.redhat.com/errata/RHSA-2017:0872ghsavendor-advisoryx_refsource_REDHATWEB
- access.redhat.com/errata/RHSA-2017:0873ghsavendor-advisoryx_refsource_REDHATWEB
- github.com/advisories/GHSA-778x-2mqv-w6xwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2016-8629ghsaADVISORY
- www.securityfocus.com/bid/97392ghsavdb-entryx_refsource_BIDWEB
- www.securitytracker.com/id/1038180ghsavdb-entryx_refsource_SECTRACKWEB
- bugzilla.redhat.com/show_bug.cgighsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.