KeygraphLabs · CVE MCP

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.

CVSS
6.5
medium, from NVD
EPSS
1.90%
percentile 80.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-12Published
2018-10-18Package advisory GHSA-778x-2mqv-w6xw
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.90%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-778x-2mqv-w6xworg.keycloak:keycloak-core (Maven)2.4.0

Also known as: GHSA-778x-2mqv-w6xw

Related

CVEPublishedCVSSSummary
CVE-2024-40282025-02-183.8Keycloak-core: stored xss in keycloak when creating a items in admin console
CVE-2023-68412024-09-107.5Keycloak: amount of attributes per object is not limited and it may lead to dos
CVE-2024-73182024-09-094.8Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity
CVE-2024-72602024-09-096.1Keycloak-core: open redirect on account page
CVE-2023-69272023-12-186.1Keycloak: open redirect via "form_post.jwt" jarm response mode
CVE-2023-49182023-09-128.8Plaintext storage of user password
CVE-2023-16642023-05-266.5same package: org.keycloak:keycloak-core (Maven)
CVE-2023-01052023-01-136.5same 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.

NVD · CVE.org