Keycloak Admin CLI: Man-in-the-Middle credential theft (CVE-2026-96453)
The Keycloak Admin CLI (kcadm) tool fails to properly validate server certificates when a custom truststore is configured, enabling attackers to intercept and compromise administrative credentials via man-in-the-middle attacks.
CVE search metadata
CVE search record: CVE-2026-96453. Severity: high. CVSS: 8.0. KEV: no. Product: Keycloak Admin CLI (kcadm). Brief: Keycloak Admin CLI: Man-in-the-Middle credential theft (CVE-2026-96453). Brief link: https://feed.craftedsignal.io/briefs/2026-11-keycloak-mitm/
Triage facts
Revision 1- Applicability
- Keycloak Admin CLI (kcadm)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 5, 20:29 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
A vulnerability exists in the Keycloak Admin CLI (kcadm) tool, identified as CVE-2026-96453. The flaw occurs when a custom truststore is provided for server identity verification. In this scenario, the tool incorrectly accepts any self-signed certificate provided the hostname matches the expected value. An attacker with a network-level vantage point can perform a man-in-the-middle (MITM) attack to impersonate the Keycloak server, resulting in the theft of administrative credentials and unauthorized management of the Keycloak instance.
Impact
Successful exploitation allows for the interception of administrative authentication traffic, leading to the compromise of credentials and the potential for unauthorized management of the Keycloak server.
Recommendation
- Inventory environments utilizing the Keycloak Admin CLI (kcadm) tool for automated or manual administrative tasks.
- Audit automation scripts to identify those that specify a custom truststore (via the --truststore or equivalent configuration parameters).
- Review network traffic patterns for administrative CLI activity to detect potential MITM anomalies or spoofed endpoint responses until a vendor-supplied patch is applied.
- Monitor vendor security advisories for the release of a patched version of Keycloak and the associated CLI tooling.
Threat Hunt
Identify the use of kcadm command-line tools across the environment that explicitly point to custom truststores.
Data: Endpoint process creation logs (Process Name, CommandLine)
Mitigations
Cease the use of custom truststores with kcadm until a security patch is verified and applied.
CVE-2026-96453