GitHub Advisoryadvisory · Maven

GHSA-g8ph-74m6-8m7r ClickHouse vulnerable to client certificate password exposure in client exception

MEDIUM Published 2023-05-12 Modified 2026-01-22 Official page ↗
Aliases
CVE-2024-23689
Ecosystem
Maven
Packages
com.clickhouse:clickhouse-client, com.clickhouse:clickhouse-jdbc, com.clickhouse:clickhouse-r2dbc
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Weaknesses
CWE-209
Reviewed
2023-05-12

Affected packages

• Maven com.clickhouse:clickhouse-client: < 0.4.6 → fixed in 0.4.6 • Maven com.clickhouse:clickhouse-jdbc: < 0.4.6 → fixed in 0.4.6 • Maven com.clickhouse:clickhouse-r2dbc: < 0.4.6 → fixed in 0.4.6

Description

Summary As initially reported in issue #1331, when client certificate authentication is enabled with password protection, the password (referred to as the client option `sslkey`) may be exposed in client exceptions (e.g., ClickHouseException or SQLException). This vulnerability can potentially lead to unauthorized access, data breaches, and violations of user privacy. Details During the handling of ClickHouseException, the client certificate password may be inadvertently exposed when sslkey is specified. This issue can arise when an exception is thrown during the execution of a query or a database operation. The client certificate password is then included in the exception message, which could be logged or exposed to unauthorized parties. Impact This vulnerability enables an attacker with access to client exception error messages or logs to obtain client certificate passwords, potentially allowing unauthorized access to sensitive information, data manipulation, and denial of service attacks. The extent of the risk depends on the specific implementation and usage of the affected systems. However, any exposure of client certificate passwords should be treated as a high-priority security concern.

Related

Alias · CVE (1)

  • CVE-2024-23689 Exposure of sensitive information in exceptions in ClichHouse's clickhouse-r2dbc, com.clickhouse:clickhouse-jdbc, and… vulnerability

Weakness · CWE (1)

  • CWE-209 Generation of Error Message Containing Sensitive Information weakness

References