{"schemaVersion":3,"id":"CVE-2023-1664","aliases":["GHSA-5cc8-pgp5-7mpm"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-05-26T00:00:00.000Z","modified":"2025-01-15T21:34:51.378Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00425,"percentile":0.35425,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00425},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00425,"percentile":0.35425}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00425,"percentile":0.35425}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-core","name":"org.keycloak:keycloak-core","label":"keycloak-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-core","purlType":"maven","versions":[{"text":"< 21.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"build_of_quarkus","name":"build of quarkus","label":"build_of_quarkus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/build_of_quarkus"},{"vendor":"redhat","product":"jboss_a-mq","name":"jboss a-mq","label":"jboss_a-mq","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7","noFixRecorded":false,"fixedIn":null}],"versionsText":"7","eol":null,"hubHref":"/vendor/redhat/jboss_a-mq"},{"vendor":"redhat","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"keycloak","label":"Keycloak","category":"server-app"}},"hubHref":"/vendor/redhat/keycloak"},{"vendor":"redhat","product":"migration_toolkit_for_runtimes","name":"migration toolkit for runtimes","label":"migration_toolkit_for_runtimes","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/migration_toolkit_for_runtimes"},{"vendor":"redhat","product":"single_sign-on","name":"single sign-on","label":"single_sign-on","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/single_sign-on"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2182196&comment#0","label":"bugzilla.redhat.com/show_bug.cgi?id=2182196&comment","hostname":"bugzilla.redhat.com","tags":["WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5cc8-pgp5-7mpm","label":"github.com/keycloak/keycloak/security/advisories/GHSA-5cc8-pgp5-7mpm","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1664","label":"nvd.nist.gov/vuln/detail/CVE-2023-1664","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-1664","label":"access.redhat.com/security/cve/CVE-2023-1664","hostname":"access.redhat.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2023:3883","RHSA-2023:3884","RHSA-2023:3885"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-05-26T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-15T21:34:51.378Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:29:07.307Z","stale":false,"partial":false}}