CVE Vulnerabilities

CVE-2023-1664

Improper Certificate Validation

Published: May 26, 2023 | Modified: Jun 03, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

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.

Weakness

The product does not validate, or incorrectly validates, a certificate.

Affected Software

Name Vendor Start Version End Version
Build_of_quarkus Redhat - (including) - (including)
Jboss_a-mq Redhat 7 (including) 7 (including)
Keycloak Redhat - (including) - (including)
Migration_toolkit_for_runtimes Redhat - (including) - (including)
Single_sign-on Redhat 7.0 (including) 7.0 (including)

Potential Mitigations

References