CVE-2016-8629 · redhat
CVE-2016-8629
Red Hat Keycloak before version 2.4.0 did not correctly check permissions when handling service account user deletion requests sent to the rest server. An attacker with service account authentication could use this flaw to bypass normal permissions and delete users in a separate realm.
Published 2018-03-12, last changed 2026-06-17. Weakness: CWE-284, CWE-264.
How to fix
Upgrade to a fixed version: org.keycloak:keycloak-core 2.4.0 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in keycloak/keycloak by 3e71aeddf3. Functions changed by the fix: getAllUserRolesStream, flattenRoleModelToRoleNames, groupAndItsParentsStream, expandCompositeRolesStream, setClaim, mapClaim, getHelpText, getClientRoleFilter. Regression tests: testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/UserTest.java, testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/group/GroupTest.java, testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java, testsuite/integration-arquillian/tests/base/src/test/resources/testrealm.json. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2018-03-12 | Published |
| 2018-10-18 | Package advisory GHSA-778x-2mqv-w6xw |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.90% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-778x-2mqv-w6xw | org.keycloak:keycloak-core (Maven) | 2.4.0 |
Also known as: GHSA-778x-2mqv-w6xw
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2024-4028 | 2025-02-18 | 3.8 | Keycloak-core: stored xss in keycloak when creating a items in admin console |
| CVE-2023-6841 | 2024-09-10 | 7.5 | Keycloak: amount of attributes per object is not limited and it may lead to dos |
| CVE-2024-7318 | 2024-09-09 | 4.8 | Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity |
| CVE-2024-7260 | 2024-09-09 | 6.1 | Keycloak-core: open redirect on account page |
| CVE-2023-6927 | 2023-12-18 | 6.1 | Keycloak: open redirect via "form_post.jwt" jarm response mode |
| CVE-2023-4918 | 2023-09-12 | 8.8 | Plaintext storage of user password |
| CVE-2023-1664 | 2023-05-26 | 6.5 | same package: org.keycloak:keycloak-core (Maven) |
| CVE-2023-0105 | 2023-01-13 | 6.5 | same package: org.keycloak:keycloak-core (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-8629, or call /api/v1/vulnerabilities/CVE-2016-8629. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.