{"id":"CVE-2025-7784","aliases":["EUVD-2025-21879","GHSA-27gp-8389-hm4w"],"status":"published","title":"Org.keycloak/keycloak-services: privilege escalation in keycloak admin console (fgapv2 enabled)","description":"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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00452,"percentile":0.39555,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-269"],"published":"2025-07-18T13:48:45Z","modified":"2026-10-28T02:31:03Z","fixes":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","fixed_in":["26.2.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.keycloak:keycloak-services","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"26.2.0"},{"fixed":"26.2.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.keycloak:keycloak-services","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"26.2.0"},{"fixed":"26.2.6"}]}],"versions":["26.2.0","26.2.1","26.2.2","26.2.3","26.2.4","26.2.5"]}],"products":[{"vendor":"red hat","product":"red hat build of keycloak 26"},{"vendor":"red hat","product":"red hat build of keycloak 26.2"},{"vendor":"red hat","product":"red hat jboss enterprise application platform 8"},{"vendor":"red hat","product":"red hat jboss enterprise application platform expansion pack"},{"vendor":"red hat","product":"red hat single sign-on 7"},{"vendor":"redhat","product":"build_of_keycloak"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:12015","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2025:12016","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-7784","tags":["vdb-entry","x_refsource_REDHAT","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2381861","tags":["issue-tracking","x_refsource_REDHAT","Issue Tracking","report","web"]},{"url":"https://github.com/keycloak/keycloak/issues/39956","tags":["report"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-27gp-8389-hm4w","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7784","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak/issues/41137","tags":["web"]},{"url":"https://github.com/keycloak/keycloak/pull/41168","tags":["web"]},{"url":"https://github.com/advisories/GHSA-27gp-8389-hm4w"},{"url":"https://access.redhat.com/downloads/content/package-browser/","tags":["web"]},{"url":"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html","tags":["web"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://github.com/keycloak/keycloak/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/7xxx/CVE-2025-7784.json","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-7784","title":"Org.keycloak/keycloak-services: privilege escalation in keycloak admin console (fgapv2 enabled)","description":"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.","status":"published","published":"2025-07-18T13:48:45.713Z","modified":"2026-05-06T16:48:58.281Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:32:51.880027Z"}],"euvd":[{"id":"EUVD-2025-21879","description":"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.","status":"published","published":"2025-07-18T13:48:45Z","modified":"2026-05-06T16:48:58Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T19:05:16.191098Z"}],"ghsa":[{"id":"GHSA-27gp-8389-hm4w","title":"Keycloak Privilege Escalation Vulnerability in Admin Console (FGAPv2 Enabled)","description":"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.","status":"published","published":"2025-07-30T13:17:19Z","modified":"2025-07-30T13:17:21Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:38:51.864708Z"}],"nvd":[{"id":"CVE-2025-7784","description":"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.","status":"published","published":"2025-07-18T14:15:26.983Z","modified":"2026-06-17T10:05:39.14Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:11:18.782156Z"}],"osv":[{"id":"CVE-2025-7784","title":"Org.keycloak/keycloak-services: privilege escalation in keycloak admin console (fgapv2 enabled)","description":"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.","status":"published","published":"2025-07-18T13:48:45.713Z","modified":"2026-10-28T02:31:03.239669902Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T15:44:53.185592Z"},{"id":"GHSA-27gp-8389-hm4w","title":"Keycloak Privilege Escalation Vulnerability in Admin Console (FGAPv2 Enabled)","description":"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.","status":"published","published":"2025-07-30T13:17:19Z","modified":"2025-07-30T14:13:39.822639Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T15:46:33.956911Z"}]}}
