Description
A flaw was found in Keycloak. This flaw depends on a non-default configuration "Revalidate Client Certificate" to be enabled and the reverse proxy is not validating the certificate before Keycloak. Using this method an attacker may choose the certificate which will be validated by the server. If this happens and the KC_SPI_TRUSTSTORE_FILE_FILE variable is missing/misconfigured, any trustfile may be accepted with the logging information of "Cannot validate client certificate trust: Truststore not available". This may not impact availability as the attacker would have no access to the server, but consumer applications Integrity or Confidentiality may be impacted considering a possible access to them. Considering the environment is correctly set to use "Revalidate Client Certificate" this flaw is avoidable.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Keycloak | NA | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.8-1.redhat_00001.1.el7sso | RHSA-2023:3885, RHSA-2023:3884, RHSA-2023:3883 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-core | < 21.1.2 | 21.1.2 | GHSA-5cc8-pgp5-7mpm |
Advisories 4
- RHSA-2023:3885 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.4 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2023:3883 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.4 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2023:3884 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.4 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 2, 2026
- WID-SEC-2023-0764 Keycloak: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Oct 5, 2023