Improper certificate validation in Keycloak
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 6 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-295.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Keycloak | NA | — | No fix listed | CNA |
| — | org.keycloak:keycloak-core (Maven) | before 21.1.2 | 21.1.2 | Patch available | GHSA-5cc8-pgp5-7mpm |
- Keycloak Vendor— Affected NA Fixed in — No fix listed CNA
- org.keycloak:keycloak-core (Maven) Vendor— Affected before 21.1.2 Fixed in 21.1.2 Patch available GHSA-5cc8-pgp5-7mpm
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:build_of_quarkus:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:jboss_a-mq:7:*:*:*:*:*:*:* | 7 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:migration_toolkit_for_runtimes:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:a:redhat:build_of_quarkus:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
- cpe:2.3:a:redhat:jboss_a-mq:7:*:*:*:*:*:*:* Versions 7 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
- cpe:2.3:a:redhat:migration_toolkit_for_runtimes:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
- cpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-5cc8-pgp5-7mpm org.keycloak:keycloak-core (Maven) Fixed in 21.1.2 Advisory →
Red Hat 6 advisories
- RHSA-2023:5491 Released 2023-10-05 · Red Hat rating ModerateRed Hat AMQ Broker 7.11.2 release and security update
- AMQ Broker 7.11.2
- RHSA-2023:3883 Released 2023-06-27 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.4 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.8-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.8-1.redhat_00001.1.el7sso
- RHSA-2023:3892 Released 2023-06-27 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.4 security update
- Red Hat Single Sign-On 7
Show 3 more Red Hat advisories
- RHSA-2023:3884 Released 2023-06-27 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.4 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.8-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.8-1.redhat_00001.1.el8sso
- RHSA-2023:3885 Released 2023-06-27 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.4 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.8-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.8-1.redhat_00001.1.el9sso
- RHSA-2023:3888 Released 2023-06-27 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.4 for OpenShift image security enhancement update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Runtimes | Affected | No fix yet |
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet: Fix deferred |
| Red Hat build of Quarkus | Affected | No fix yet: Fix deferred |
| AMQ Broker 7.11.2 | Fixed | RHSA-2023:5491 |
| Middleware Containers for OpenShift | Fixed | RHSA-2023:3888 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2023:3892 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2023:3883 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2023:3884 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2023:3885 |
Not affected: 1 product
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2023-1664
- 2026-10-03 Alias added: GHSA-5cc8-pgp5-7mpm
References
More Red Hat Build Of Quarkus vulnerabilities
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2022-03763 Injection in quarkus CVSS 3.1CRITICAL 9.8
- TI-2023-05869 Quarkus: graphql operations over websockets bypass CVSS 3.1CRITICAL 9.1
- TI-2023-04469 Quarkus: http security policy bypass CVSS 3.1HIGH 8.1
- TI-2022-04106 Server-side request forgery in undertow CVSS 3.1HIGH 7.5
- TI-2023-02786 Quarkus-core: tls protocol configured with quarkus.http.ssl.protocols is not enforced… CVSS 3.1HIGH 8.1
Sources
- CVE-2023-1664 · CVE Program
- CVE-2023-1664 · NVD
- FIRST EPSS
- GHSA-5cc8-pgp5-7mpm · GitHub Advisory Database · CC BY 4.0
- CVE-2023-1664 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences