Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-1664 EUVD-2023-1697GHSA-5cc8-pgp5-7mpm

Keycloak Untrusted Certificate Validation vulnerability

Published May 26, 2023 · Updated Jan 15, 2025 · Assigned by redhat

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
Maven org.keycloak:keycloak-core < 21.1.2 21.1.2 GHSA-5cc8-pgp5-7mpm

Advisories 4

References