{
  "threat_severity" : "Important",
  "public_date" : "2026-05-28T03:16:49Z",
  "bugzilla" : {
    "description" : "keycloak: Keycloak: Privilege escalation via improper scope mapping enforcement",
    "id" : "2482462",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2482462"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-266",
  "details" : [ "A flaw was found in Keycloak's Fine-Grained Admin Permissions (FGAPv2) feature. An administrator with limited client management permissions can exploit this vulnerability to assign any realm role, including highly privileged roles, to a client's scope mapping. This bypasses intended security controls, allowing the injected role to be projected into a user's authentication token when they access the modified client. This could lead to unauthorized privilege escalation within the Keycloak realm.", "A flaw was found in Keycloak's Fine-Grained Admin Permissions (FGAPv2) feature. An administrator with limited client management permissions can exploit this vulnerability to assign any realm role, including highly privileged roles, to a client's scope mapping. This bypasses intended security controls, allowing the injected role to be projected into a user's authentication token when they access the modified client. This could lead to unauthorized privilege escalation within the Keycloak realm." ],
  "statement" : "This is an Important privilege escalation flaw in Keycloak when Fine-Grained Admin Permissions (FGAPv2) are enabled. An attacker with fine-grained client management permissions can bypass role mapping restrictions, allowing them to inject arbitrary realm roles into a client's scope. Subsequent authentication by a privileged user through the compromised client would then project these injected roles into their token, leading to unauthorized access. Exploitation requires specific administrative preconditions and user interaction.",
  "acknowledgement" : "Red Hat would like to thank Andrej Tomci for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat build of Keycloak 26.4",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30050",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.4::el9",
    "package" : "rhbk/keycloak-operator-bundle:26.4.13-1"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.4",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30050",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.4::el9",
    "package" : "rhbk/keycloak-rhel9:26.4-19"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.4",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30050",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.4::el9",
    "package" : "rhbk/keycloak-rhel9-operator:26.4-19"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.4.13",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30049",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.4::el9",
    "package" : "rhbk/keycloak-rhel9"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.6",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30084",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.6::el9",
    "package" : "rhbk/keycloak-operator-bundle:26.6.4-2"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.6",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30084",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.6::el9",
    "package" : "rhbk/keycloak-rhel9:26.6-8"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.6",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30084",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.6::el9",
    "package" : "rhbk/keycloak-rhel9-operator:26.6-8"
  }, {
    "product_name" : "Red Hat build of Keycloak 26.6.4",
    "release_date" : "2026-06-25T00:00:00Z",
    "advisory" : "RHSA-2026:30083",
    "cpe" : "cpe:/a:redhat:build_keycloak:26.6::el9",
    "package" : "rhbk/keycloak-rhel9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2026-9795\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-9795" ],
  "name" : "CVE-2026-9795",
  "mitigation" : {
    "value" : "To mitigate this issue, disable the Fine-Grained Admin Permissions (FGAPv2) feature in Keycloak if it is not strictly required. This can typically be done by setting `adminPermissionsEnabled` to `false` in the realm configuration. Disabling FGAPv2 will prevent the exploitation of this flaw by removing the vulnerable functionality. However, this may impact administrative delegation capabilities within Keycloak. A restart or reload of the Keycloak service may be required for the changes to take effect.",
    "lang" : "en:us"
  },
  "csaw" : false
}