CVE-2023-1664

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductRedhat Keycloak
PublishedMay 26, 2023
First seenMay 26, 2023
Weakness typeCWE-295CWE-295

How to fix

Update
  • org.keycloak:keycloak-core21.1.2 or later

Affected products

ProductAffected versionsFixed in
redhat keycloakNo range specified—
redhat build_of_quarkusNo range specified—
redhat jboss_a-mq7—
redhat migration_toolkit_for_runtimesNo range specified—
redhat single_sign-on7.0—
org.keycloak:keycloak-coreMavenv < 21.1.221.1.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2023-1664 · Redhat Keycloak · Dark Radar