Descrizione

A flaw was found in the SAML HTTP-Redirect binding implementation of Keycloak. The issue occurs because the server processes percent-encoded parameter names (like %53AMLResponse) while the signature verification logic only checks literal parameter names. An attacker can use this discrepancy to provide a crafted, unsigned SAML message that the server processes instead of a legitimately signed one, leading to full account takeover of federated users.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1, EPSS 0.3% (percentile 21).

Versioni da aggiornare

  • Redhat Build Of Keycloak: vulnerabili le versioni dalla 26.6 precedenti alla 26.6.9 → aggiornare alla 26.6.9 o successiva.
  • Red Hat Red Hat build of Keycloak 26.6: versione corretta 26.6.9-1 (o successiva).
  • Red Hat Red Hat build of Keycloak 26.6: versione corretta 26.6-25 (o successiva).
  • Red Hat Red Hat build of Keycloak 26.6: versione corretta 26.6-26 (o successiva).

Indicazioni del vendor

Workaround (testo originale del vendor):

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. --- CME Mitigation Guidance (2026-11-06) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to align query parameter parsing between signature verification and request processing in Keycloak's SAML HTTP-Redirect binding so percent-encoded parameter names cannot evade signature checks: upgrade to the fixed Rhbk/Keycloak Rhel/Keycloak Services builds, which eliminates the parsing discrepancy between raw query parameter signature verification and decoded parameter processing in the SAML redirect binding, closing crafted HTTP GET request containing a percent-encoded unsigned SAML parameter placed before a legitimately signed parameter. Until patched, this is a concern on Keycloak instances configured to use SAML HTTP-Redirect binding for federated identity, so Audit and restrict account registration on external Identity Providers to prevent attackers from capturing legitimately signed redirect-binding messages. These controls limit…

Patch e advisory

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Redhat Build Of Keycloak ≥ 26.6 < 26.6.9 26.6.9
Red Hat Red Hat build of Keycloak 26.6 — 26.6.9-1
Red Hat Red Hat build of Keycloak 26.6 — 26.6-25
Red Hat Red Hat build of Keycloak 26.6 — 26.6-26

Riferimenti