{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-core. It affects 5 products.","exploited":"There is no known exploitation of CVE-2023-1664 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-core to 21.1.2 or later.","what":"CVE-2023-1664 is a medium-severity vulnerability in Redhat Keycloak, published on 26 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-1664 and fix it if it is affected.\n\nWhat it is: CVE-2023-1664 is a medium-severity vulnerability in Redhat Keycloak, published on 26 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-1664 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-core (Maven): affected all versions; fixed in 21.1.2\n- org.keycloak:keycloak-core (Maven): affected all versions; fixed in 21.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-1664/ (Markdown: https://insights.sbomify.com/CVE-2023-1664/index.md)","id":"CVE-2023-1664","markdown":"https://insights.sbomify.com/CVE-2023-1664/index.md","name":"CVE-2023-1664","record":{"aliases":["GHSA-5cc8-pgp5-7mpm"],"analysis":{"component_type":"server_software","fix_type":"configuration_change","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Keycloak identity server","requires_auth":"none","summary":"Attackers can bypass client certificate validation in Keycloak if specific non-default configurations are misconfigured, potentially compromising integrity or confidentiality.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"build_of_quarkus","vendor":"redhat"},{"product":"jboss_a-mq","vendor":"redhat"},{"product":"keycloak","vendor":"redhat"},{"product":"migration_toolkit_for_runtimes","vendor":"redhat"},{"product":"single_sign-on","vendor":"redhat"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Keycloak Untrusted Certificate Validation vulnerability","id":"CVE-2023-1664","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:keycloak","products":["redhat:keycloak","redhat:single_sign-on"],"type":"security_feature_bypass","year":"2023"},"n_packages":2,"n_references":1,"next":{"headline":"Improper Restriction of Excessive Authentication Attempts in linagora/twake","id":"CVE-2023-1665"},"packages":[{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-core","purl":null,"source":"GHSA-5cc8-pgp5-7mpm"},{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-core","purl":"pkg:maven/org.keycloak/keycloak-core","source":"GHSA-5cc8-pgp5-7mpm"}],"prev":{"headline":"Authenticated Resources Accessible via Forced Browsing","id":"CVE-2023-1663"},"products":["Keycloak"],"published":"2023-05-26","related":[{"cvss_score":7.5,"headline":"Undertow client not checking server identity presented by server certificate in https connections","id":"CVE-2022-4492","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":6.5,"headline":"quarkus-core vulnerable to client driven TLS cipher downgrading","id":"CVE-2023-2974","kev_date_added":null,"published":"2023-07-04"},{"cvss_score":6.1,"headline":"SmallRye Health UI Cross-site Scripting vulnerability","id":"CVE-2021-3914","kev_date_added":null,"published":"2022-08-25"},{"cvss_score":5.3,"headline":"Quarkus: potential invalid reuse of context when @cacheresult on a uni is used","id":"CVE-2023-6393","kev_date_added":null,"published":"2023-12-06"},{"cvss_score":4.8,"headline":"Cross-site Scripting in Wildfly","id":"CVE-2021-3536","kev_date_added":null,"published":"2021-05-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-15","vendors":["n/a"]},"summary":"Attackers can bypass client certificate validation in Keycloak if specific non-default configurations are misconfigured, potentially compromising integrity or confidentiality.","url":"https://insights.sbomify.com/CVE-2023-1664/"}