Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1nOHBoLTc0bTYtOG03cs4AAzUA

ClickHouse vulnerable to client certificate password exposure in client exception

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.

Permalink: https://github.com/advisories/GHSA-g8ph-74m6-8m7r
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nOHBoLTc0bTYtOG03cs4AAzUA
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: over 1 year ago


CVSS Score: 4.8
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Identifiers: GHSA-g8ph-74m6-8m7r
References: Repository: https://github.com/ClickHouse/clickhouse-java
Blast Radius: 11.8

Affected Packages

maven:com.clickhouse:clickhouse-r2dbc
Dependent packages: 1
Dependent repositories: 5
Downloads:
Affected Version Ranges: < 0.4.6
Fixed in: 0.4.6
All affected versions: 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5
All unaffected versions: 0.4.6, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1
maven:com.clickhouse:clickhouse-jdbc
Dependent packages: 34
Dependent repositories: 284
Downloads:
Affected Version Ranges: < 0.4.6
Fixed in: 0.4.6
All affected versions: 0.3.2, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5
All unaffected versions: 0.4.6, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1
maven:com.clickhouse:clickhouse-client
Dependent packages: 8
Dependent repositories: 4
Downloads:
Affected Version Ranges: < 0.4.6
Fixed in: 0.4.6
All affected versions: 0.3.2, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5
All unaffected versions: 0.4.6, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1