CVE-2023-1664

Keycloak vulnerable to untrusted certificate validation in maven/org.keycloak/keycloak-core

Identifiers

CVE-2023-1664, GHSA-c892-cwq6-qrqf

Package Slug

maven/org.keycloak/keycloak-core

Vulnerability

Keycloak vulnerable to untrusted certificate validation

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 KCSPITRUSTSTOREFILEFILE 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 Versions

All versions up to 21.1.1

Solution

Unfortunately, there is no solution available yet.

Last Modified

2023-05-29

source