{"id":"CVE-2026-4629","aliases":[],"summary":"Keycloak: keycloak: privilege escalation through hardcoded role mapper injection","published_at":"2026-04-20T12:34:00Z","modified_at":"2026-10-22T20:39:25.736Z","products":[{"slug":"keycloak","name":"Keycloak","category":"identity"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.004860000219196081,"percentile":0.4263499975204468,"date":"2026-11-19T00:00:00Z"},"priority":7.5,"details":"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.","affected_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4.14-1"}]}],"fixed":["26.4.14-1"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-22"}]}],"fixed":["26.4-22"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-22"}]}],"fixed":["26.4-22"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:50847"],"provider":"redhat-vex","source":"CVE-2026-4629"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.14","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:50846"],"provider":"redhat-vex","source":"CVE-2026-4629"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.5","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:50848"],"provider":"redhat-vex","source":"CVE-2026-4629"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2145","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2145","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-06-30T22:00:00Z","modified_at":"2026-11-08T23:00:00Z","summary":"Keycloak: Mehrere Schwachstellen","details":"Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um Administratorrechte zu erlangen, Sicherheitsmaßnahmen zu umgehen und vertrauliche Informationen offenzulegen.\n\nKeycloak ermöglicht Single Sign-On mit Identity and Access Management für moderne Anwendungen und Dienste.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-2145"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2145.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2145"},{"type":"WEB","url":"https://github.com/advisories/GHSA-xmfr-m52w-m2hx"},{"type":"WEB","url":"https://github.com/advisories/GHSA-M4J4-8CHJ-8G5F"},{"type":"WEB","url":"https://github.com/advisories/GHSA-JXQV-2JJX-692H"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-40299"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-40300"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-40301"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50847"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50846"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50849"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50848"},{"type":"WEB","url":"https://www.keycloak.org/2026/10/keycloak-2680-released"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95761"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95762"}]},{"provider":"cvelistv5","source_id":"CVE-2026-4629","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-4629","license":"CC-BY-4.0","published_at":"2026-06-30T12:00:28.631Z","modified_at":"2026-10-22T20:39:25.736Z","summary":"Keycloak: keycloak: privilege escalation through hardcoded role mapper injection","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-4629"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4.14-1"}]}],"fixed":["26.4.14-1"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-22"}]}],"fixed":["26.4-22"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-22"}]}],"fixed":["26.4-22"],"provider":"cvelistv5","source":"CVE-2026-4629","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50846"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50847"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50848"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-4629"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450244"}]},{"provider":"redhat-vex","source_id":"CVE-2026-4629","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-4629","license":"CC-BY-4.0","published_at":"2026-04-20T12:34:00Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"keycloak: Keycloak: Privilege escalation through hardcoded role mapper injection","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-4629"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-4629"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:50847"],"provider":"redhat-vex","source":"CVE-2026-4629"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.14","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:50846"],"provider":"redhat-vex","source":"CVE-2026-4629"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.5","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:50848"],"provider":"redhat-vex","source":"CVE-2026-4629"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4629.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-4629"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450244"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-4629"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4629"}]}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50846"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50847"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50848"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-4629"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450244"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4629.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-4629"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4629"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2145","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2145","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-11-08T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-4629","url":"https://www.cve.org/CVERecord?id=CVE-2026-4629","license":"CC-BY-4.0","modified_at":"2026-10-22T20:39:25.736Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-4629","url":"https://access.redhat.com/security/cve/CVE-2026-4629","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
