Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.clickhouse/clickhouse-jdbc
  4. ›
  5. GMS-2023-1486

GMS-2023-1486: ClickHouse vulnerable to client certificate password exposure in client exception

May 12, 2023

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.

References

  • github.com/ClickHouse/clickhouse-java/issues/1331
  • github.com/ClickHouse/clickhouse-java/pull/1334
  • github.com/ClickHouse/clickhouse-java/releases/tag/v0.4.6
  • github.com/ClickHouse/clickhouse-java/security/advisories/GHSA-g8ph-74m6-8m7r
  • github.com/advisories/GHSA-g8ph-74m6-8m7r

Code Behaviors & Features

Detect and mitigate GMS-2023-1486 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.6

Fixed versions

  • 0.4.6

Solution

Upgrade to version 0.4.6 or above.

Source file

maven/com.clickhouse/clickhouse-jdbc/GMS-2023-1486.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.