Descrizione
A flaw was found in the Keycloak Admin CLI kcadm tool, which is used by administrators to manage Keycloak servers from the command line. When a custom truststore is provided to verify the server identity, the tool incorrectly accepts any self-signed certificate as long as the hostname matches. This allows a network attacker to impersonate the Keycloak server, steal administrative credentials, and perform unauthorized management actions.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.0, EPSS 0.2% (percentile 13).
Versioni da aggiornare
- Red Hat Red Hat build of Keycloak 26.4: versione corretta
26.4.17-2(o successiva). - Red Hat Red Hat build of Keycloak 26.4: versione corretta
26.4-29(o successiva). - Red Hat Red Hat build of Keycloak 26.4: versione corretta
26.4-30(o successiva). - Red Hat Red Hat build of Keycloak 26.6: versione corretta
26.6.8-2(o successiva). - Red Hat Red Hat build of Keycloak 26.6: versione corretta
26.6-24(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 disable TrustSelfSignedStrategy in the Keycloak Admin CLI HTTP client configuration and enforce validation strictly against the configured custom truststore: upgrade to Red Hat build of Keycloak 26.4.17 / 26.6.8 (or the corresponding fixed Red Hat builds), which disable TrustSelfSignedStrategy in the HTTP client and enforce certificate verification against the provided truststore, closing all 2 injection vectors (Man-in-the-Middle network interception, DNS redirection). Until patched, this is a concern on Administrators executing kcadm with a custom truststore option, so Avoid executing kcadm with custom truststores across untrusted networks, and restrict network paths and DNS resolution between client hosts and Keycloak endpoints. As a compensating measure, Cryptographically verify DNS response authenticity using DNSSEC validation to…
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
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4.17-2 |
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4-29 |
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4-30 |
| Red Hat | Red Hat build of Keycloak 26.6 | — | 26.6.8-2 |
| Red Hat | Red Hat build of Keycloak 26.6 | — | 26.6-24 |
Riferimenti
- Riferimentohttps://access.redhat.com/errata/RHSA-2026:95759
- Riferimentohttps://access.redhat.com/errata/RHSA-2026:95760
- Riferimentohttps://access.redhat.com/errata/RHSA-2026:95761
- Riferimentohttps://access.redhat.com/errata/RHSA-2026:95762
- Riferimentohttps://access.redhat.com/security/cve/CVE-2026-96453
- Riferimentohttps://bugzilla.redhat.com/show_bug.cgi?id=2539294