Keycloak: keycloak: privilege escalation through hardcoded role mapper injection (Red Hat Red Hat build of Keycloak 26.4)

CVE-2026-4629
MEDIUM 6.5

En bref

Source
NVD
EPSS
EPSS 0.49 % · centile 42 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
redhat
Statut NVD
Modified

Description

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.

Faiblesses (CWE)

  • CWE-266 — Incorrect Privilege Assignment

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)

Références européennes

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4.14-1 < *
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4-22 < *
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4-22 < *
Red Hat · Red Hat build of Keycloak 26.4.14
Red Hat · Red Hat build of Keycloak 26.6.5

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD