Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization (Red Hat Red Hat build of Keycloak 26.4)

CVE-2026-97848
MEDIUM 6.5

En bref

Source
NVD
EPSS
EPSS 0.36 % · centile 32 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
redhat
Produits affectés
Red Hat · Red Hat build of Keycloak 26.4
Red Hat · Red Hat build of Keycloak 26.4.17
Red Hat · Red Hat build of Keycloak 26.6
Red Hat · Red Hat build of Keycloak 26.6.8
Red Hat · Red Hat Single Sign-On 7
Statut NVD
Awaiting Analysis

Description

A flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution. The issue occurs when a protocol mapper is configured to emit structured claims using the JSON type. The security check designed to remove unauthorized role mappings only looks for standard Java maps and fails to recognize Jackson based JSON objects. This allows an attacker to inject forged client roles into security tokens, which could lead to unauthorized access to protected resources.

Faiblesses (CWE)

  • CWE-20 — Validation d'entrée incorrecte

Crédits

  • Red Hat would like to thank Katika Mohaseen (GitHub: h1-mrz) for reporting this issue.

Références

Scores

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

Références européennes

Produits affectés

ProduitVersions affectées
Red Hat · Red Hat build of Keycloak 26.4
rhbk/keycloak-operator-bundle
non affectée : ≥ 26.4.17-2 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9
non affectée : ≥ 26.4-29 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9-operator
non affectée : ≥ 26.4-30 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.4.17
keycloak-services
Autres versions : non affectée
Red Hat · Red Hat build of Keycloak 26.4.17
rhbk/keycloak-rhel9
Autres versions : non affectée
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-operator-bundle
non affectée : ≥ 26.6.8-2 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9
non affectée : ≥ 26.6-24 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9-operator
non affectée : ≥ 26.6-24 < *
Autres versions : affectée
Red Hat · Red Hat build of Keycloak 26.6.8
keycloak-services
Autres versions : non affectée
Red Hat · Red Hat build of Keycloak 26.6.8
rhbk/keycloak-rhel9
Autres versions : non affectée
Red Hat · Red Hat Single Sign-On 7
keycloak-services
Autres versions : non affectée

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