{"id":"CVE-2026-4629","aliases":["CVE-2026-4629"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak: keycloak: privilege escalation through hardcoded role mapper injection","summary":"A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.","source":"cvelist"},{"lang":"es","text":"Se encontró un defecto en Keycloak. Un usuario con altos privilegios con permiso ’manage-clients’ puede explotar esta vulnerabilidad inyectando un mapeador de roles codificado en cualquier cliente. Esta acción permite al usuario eludir las restricciones de alcance existentes e inyectar el rol ’realm-admin’ en los tokens generados, lo que resulta en escalada de privilegios y acceso administrativo completo al reino.","source":"nvd"}],"published":"2026-06-30T12:00:28.631Z","modified":"2026-11-25T16:17:52.280Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-266"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"26.2.16","status":"affected"},{"type":"semver","introduced":"26.3.0","lastAffected":"26.3.5","status":"affected"},{"type":"semver","introduced":"26.4.0","fixed":"26.4.14","status":"affected"},{"type":"semver","introduced":"26.5.0","lastAffected":"26.5.7","status":"affected"},{"type":"semver","introduced":"26.6.0","fixed":"26.6.5","status":"affected"},{"type":"semver","introduced":"26.7.0","fixed":"26.7.1","status":"affected"}],"package":"keycloak","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4.14-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-22","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-22","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.14","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.5","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"redhat","product":"build_of_keycloak","cpe":"cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:50846","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50847","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50848","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-4629","tags":["vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450244","tags":["exploit","issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Daniel Peters (Operating Intelligence Inc.), Lior Moshe (Operating Intelligence Inc.), and Uri Rolls (Operating Intelligence Inc.) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-01T14:26:33.448Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-4629","url":"https://www.cve.org/CVERecord?id=CVE-2026-4629","licence":"CVE Terms of Use","modified":"2026-11-25T15:36:30.345Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-4629","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4629","licence":"Public domain","modified":"2026-11-25T16:17:52.280Z"}],"updatedAt":"2026-11-25T23:18:20.176Z","epss":{"score":0.00414,"percentile":0.37719,"date":"2026-12-01T12:00:22.000Z"}}