CVE-2023-1664
mediumpriority · track · 26EPSS 0.004 · 37 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (17)
Products and version ranges known to be affected.
- redhat migration toolkit for runtimesall versionsnvdUScpe:2.3:a:redhat:migration_toolkit_for_runtimes:*:*:*:*:*:*:*:*
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-0764Keycloak: Schwachstelle ermöglicht Umgehen von SicherheitsvorkehrungenDeutsch2023-03-27csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Keycloak und Red Hat Single Sign On ausnutzen, um Sicherheitsvorkehrungen zu umgehen.
- GHSA-5cc8-pgp5-7mpmKeycloak Untrusted Certificate Validation vulnerability2023-06-30ghsa · osvUS
A flaw was found in keycloak-core. This flaw considers the scenario when using X509 Client Certificate Authenticatior with the option "Revalidate Client Certificate". A user may be able to choose, if directly connect to keycloak (not passing via reverse proxy) a specific certificate. If there's a configuration error in KC_SPI_TRUSTSTORE_FILE_FILE the authenticator allows even with the "Cannot validate client certificate trust: Truststore not available" message as there's no certificate to trust against.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2023-1664cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2182196&comment#0cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-1664/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3652cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2182196&comment#0enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2182196&comment#0Issue TrackingVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan