{"id":"CVE-2025-7784","aliases":["CVE-2025-7784","GHSA-27gp-8389-hm4w"],"related":[],"kind":"vulnerability","state":"published","title":"Org.keycloak/keycloak-services: privilege escalation in keycloak admin console (fgapv2 enabled)","summary":"A flaw was found in the Keycloak identity and access management system when Fine-Grained Admin Permissions(FGAPv2) are enabled. An administrative user with the manage-users role can escalate their privileges to realm-admin due to improper privilege enforcement. This vulnerability allows unauthorized elevation of access rights, compromising the intended separation of administrative duties and posing a security risk to the realm.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in the Keycloak identity and access management system when Fine-Grained Admin Permissions(FGAPv2) are enabled. An administrative user with the manage-users role can escalate their privileges to realm-admin due to improper privilege enforcement. This vulnerability allows unauthorized elevation of access rights, compromising the intended separation of administrative duties and posing a security risk to the realm.","source":"cvelist"},{"lang":"en","text":"A Privilege Escalation vulnerability was identified in the Keycloak identity and access management solution, specifically when FGAPv2 is enabled in version 26.2.x. The flaw lies in the admin permission enforcement logic, where a user with manage-users privileges can self-assign realm-admin rights. The escalation occurs due to missing privilege boundary checks in role mapping operations via the admin REST interface. A malicious administrator with limited permissions can exploit this by editing their own user roles, gaining unauthorized full access to realm configuration and user data.\n\nThis issue has been fixed in versions 26.2.6, and 26.3.0.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó una falla en Keycloak identity and access management system cuando los permisos Fine-Grained Admin Permissions (FGAPv2) estaban habilitados. Un usuario administrativo con el rol \"administrar usuarios\" puede escalar sus privilegios a \"administrador de dominio\" debido a una aplicación incorrecta de privilegios. Esta vulnerabilidad permite la elevación no autorizada de derechos de acceso, lo que compromete la separación prevista de las funciones administrativas y supone un riesgo de seguridad para el dominio.","source":"nvd"}],"published":"2025-07-18T13:48:45.713Z","modified":"2026-06-17T10:05:39.140Z","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"},{"scorer":"GitHub","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-269"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"26.2.6","status":"affected"}],"package":"keycloak","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26","package":"keycloak-services","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2.6-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"keycloak-services","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"keycloak-services","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak-services","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"26.2.0","status":"affected","fixed":"26.2.6"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"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-2025:12015","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2025:12016","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-7784","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2381861","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/issues/39956","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-27gp-8389-hm4w","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7784","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/issues/41137","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/pull/41168","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Patrick Kutz for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-07-18T14:46:09.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-7784","url":"https://www.cve.org/CVERecord?id=CVE-2025-7784","licence":"CVE Terms of Use","modified":"2026-05-06T16:48:58.281Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27gp-8389-hm4w","url":"https://github.com/advisories/GHSA-27gp-8389-hm4w","licence":"CC-BY-4.0","modified":"2025-07-30T14:13:39.822Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-7784","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7784","licence":"Public domain","modified":"2026-06-17T10:05:39.140Z"}],"updatedAt":"2026-11-25T22:59:01.413Z","epss":{"score":0.00448,"percentile":0.40689,"date":"2026-12-01T12:00:22.000Z"}}