PT-2023-5099 · Red Hat · Keycloak

Patrick Del Bello

·

Published

2023-05-26

·

Updated

2025-01-15

·

CVE-2023-1664

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Keycloak (affected versions not specified)
Description The issue is related to errors in the certificate authentication procedure. An attacker may be able to choose a certificate that will be validated by the server if the "Revalidate Client Certificate" option is enabled and the reverse proxy does not validate the certificate before Keycloak. This could impact the confidentiality and integrity of protected information. The KC SPI TRUSTSTORE FILE FILE variable must be correctly configured to prevent any trustfile from being accepted.
Recommendations As a temporary workaround, consider disabling the "Revalidate Client Certificate" option until a proper configuration is in place. Ensure the KC SPI TRUSTSTORE FILE FILE variable is correctly configured to prevent trustfile acceptance issues. Restrict access to the Keycloak server to minimize the risk of exploitation, especially when using the X509 Client Certificate Authenticator. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Improper Certificate Validation

Weakness Enumeration

Related Identifiers

BDU:2023-05659
CVE-2023-1664
GHSA-5CC8-PGP5-7MPM
GHSA-C892-CWQ6-QRQF
RHSA-2023:3883
RHSA-2023:3884
RHSA-2023:3885

Affected Products

Keycloak