CVE & CISA-KEV Catalog

CVE-2023-1664

MEDIUM
6.5
CVSS v3
NVD

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.

How to fix

Remediation Available
rh-sso-7/sso76Red Hat / RHEL
Fixed in:openshift-rhel8@sha256:d15acb2c2c6bed9934c011c6864ca5c2ae989f783390bdb3eca77f5fc4ccc92a_amd64RHSA-2023:3888
Fixed in:openshift-rhel8@sha256:f52cb785c11ab691e0583a69e665496af83b4191037742ef2b1dd1237f42722e_ppc64leRHSA-2023:3888
Fixed in:openshift-rhel8@sha256:b8452b9ca79791555bb4709a4d3c81768e0571f72fe88480be9dfd585e02913e_s390xRHSA-2023:3888
rh-sso-7/sso76Rocky
Fixed in:openshift-rhel8@sha256:d15acb2c2c6bed9934c011c6864ca5c2ae989f783390bdb3eca77f5fc4ccc92a_amd64RHSA-2023:3888
Fixed in:openshift-rhel8@sha256:f52cb785c11ab691e0583a69e665496af83b4191037742ef2b1dd1237f42722e_ppc64leRHSA-2023:3888
Fixed in:openshift-rhel8@sha256:b8452b9ca79791555bb4709a4d3c81768e0571f72fe88480be9dfd585e02913e_s390xRHSA-2023:3888
rh-sso7-keycloakRocky
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885
rh-sso7-keycloakRed Hat / RHEL
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885
rh-sso7-keycloak-serverRed Hat / RHEL
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885
rh-sso7-keycloak-serverRocky
Fixed in:0:18.0.8-1.redhat_00001.1.el7ssoRHSA-2023:3883
Fixed in:0:18.0.8-1.redhat_00001.1.el8ssoRHSA-2023:3884
Fixed in:0:18.0.8-1.redhat_00001.1.el9ssoRHSA-2023:3885

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploit Intelligence

0.43%probability of exploitation in 30 days
34thpercentile

Low risk: more likely to be exploited than 34% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-295 (Improper Certificate Validation) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-4000Low3.7100%-Fix
CVE-2020-0601High8.189%KEVFix
CVE-2009-3555Critical9.887%-Fix
CVE-2022-26923High8.883%KEVFix
CVE-2023-27823Critical9.853%--
CVE-2022-42979High8.824%--
Embed a live status badge for CVE-2023-1664
CVE-2023-1664 severity badge

Markdown

[![CVE-2023-1664](https://tridentstack.com/cve/badge/CVE-2023-1664.svg)](https://tridentstack.com/cve/CVE-2023-1664)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-1664"><img src="https://tridentstack.com/cve/badge/CVE-2023-1664.svg" alt="CVE-2023-1664"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-01-15.