{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "26.2.16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "26.3.0"
                  },
                  {
                    "last_affected": "26.3.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "26.4.0"
                  },
                  {
                    "fixed": "26.4.14"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "26.5.0"
                  },
                  {
                    "last_affected": "26.5.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "26.6.0"
                  },
                  {
                    "fixed": "26.6.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "26.7.0"
                  },
                  {
                    "fixed": "26.7.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "72670c0c83481ba212980174cf548aa94e41b833"
            },
            {
              "introduced": "88d87bcf4b4e70b36fc774ffbe84225db8deb233"
            },
            {
              "last_affected": "8d6ab96cc3f2d1060f96f0e4e5adf46854c30933"
            },
            {
              "introduced": "4e25e47b3c3619b3a0593448e1dfc0dd786cfbe1"
            },
            {
              "fixed": "535d541bc27a5ca3ffaf22f91a15bfb164b7d13e"
            },
            {
              "introduced": "bb0c59793c0ce4d2ff4f9e1a2b51cca9f262309c"
            },
            {
              "last_affected": "97c2dad98597b17efae79006be47a51c6f5a72e9"
            },
            {
              "introduced": "0526b94f0ddf166a210e39fd69d897ab4bb14431"
            },
            {
              "fixed": "a3d19d7ef14450057cb02c86b36e011154911d72"
            },
            {
              "introduced": "6c73e3027811d9c7b22683edd825e839272e9547"
            },
            {
              "fixed": "73f08b397f193712b26d317210dce99898129709"
            }
          ],
          "repo": "https://github.com/keycloak/keycloak",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-266"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4629.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "26.4.14-1"
              },
              {
                "fixed": "26.4-22"
              },
              {
                "fixed": "26.4-22"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "InverseAffectedRanges"
          }
        ]
      }
    ]
  },
  "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.",
  "id": "CVE-2026-4629",
  "modified": "2026-11-26T19:45:28.874020541Z",
  "published": "2026-06-30T12:00:28.631Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://catalog.redhat.com/software/containers/"
    },
    {
      "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": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-4629"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4629.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-4629"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2450244"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/keycloak/keycloak"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Keycloak: keycloak: privilege escalation through hardcoded role mapper injection"
}