# CVE-2023-1664: Keycloak Untrusted Certificate Validation vulnerability

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2023-05-26T00:00:00.000Z
- Modified: 2026-06-17T05:28:28.333Z
- Also known as: GHSA-5cc8-pgp5-7mpm
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Keycloak: NA
- org.keycloak:keycloak-core (Maven): before 21.1.2
- redhat build_of_quarkus: no versions given
- redhat jboss_a-mq: 7
- redhat keycloak: no versions given
- redhat migration_toolkit_for_runtimes: no versions given
- redhat single_sign-on: 7.0

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2182196&comment#0> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-5cc8-pgp5-7mpm> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-1664> (advisory)
- <https://access.redhat.com/security/cve/CVE-2023-1664> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2023-1664](https://www.cve.org/CVERecord?id=CVE-2023-1664), CVE Terms of Use, modified 2025-01-15
- GitHub Advisory Database: [GHSA-5cc8-pgp5-7mpm](https://github.com/advisories/GHSA-5cc8-pgp5-7mpm), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-1664](https://nvd.nist.gov/vuln/detail/CVE-2023-1664), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-1664 · Whole record: https://cve.day/CVE-2023-1664.json · Rebuilt by cve.day 2026-11-25T22:58:24.397Z
