Vulnerabilities in pkg:maven/com.clickhouse/clickhouse-r2dbc

PACKAGE
Advisory Identifier: GHSA-g8ph-74m6-8m7r
Advisory Summary

CVE-2024-23689 is a MODERATE (CVSS 4.8) clickhouse vulnerable to client certificate vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Clickhouse client libraries in the Maven ecosystem. The issue involves clickhouse vulnerable to client certificate password exposure in client exception. Remediation is available by upgrading affected packages to version 0.4.6.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.clickhouse/clickhouse-r2dbc

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.clickhouse/clickhouse-r2dbc. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g8ph-74m6-8m7r CVE-2024-23689 MODERATE ClickHouse vulnerable to client certificate password exposure in client exception
GHSA-3p77-wg4c-qm24 - HIGH Duplicate Advisory: Exposure of sensitive information in ClickHouse

CVE-2024-23689 at a Glance

CVE Identifier CVE-2024-23689
GHSA Identifier GHSA-g8ph-74m6-8m7r
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Clickhouse client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-23689

To remediate this vulnerability, upgrade all affected Clickhouse client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.clickhouse:clickhouse-client fixed: 0.4.6
<dependency>
    <groupId>com.clickhouse</groupId>
    <artifactId>clickhouse-client</artifactId>
    <version>0.4.6</version>
</dependency>
com.clickhouse:clickhouse-jdbc fixed: 0.4.6
<dependency>
    <groupId>com.clickhouse</groupId>
    <artifactId>clickhouse-jdbc</artifactId>
    <version>0.4.6</version>
</dependency>
com.clickhouse:clickhouse-r2dbc fixed: 0.4.6
<dependency>
    <groupId>com.clickhouse</groupId>
    <artifactId>clickhouse-r2dbc</artifactId>
    <version>0.4.6</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.clickhouse

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-23689, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.clickhouse

Analyze the terminal output to locate any version of Clickhouse client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.clickhouse command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Clickhouse client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2024-23689 Affected Clickhouse client Versions

3 component(s)
Fixed Versions:
0.4.6
Product / Package Ecosystem Affected Versions Fixed Version
com.clickhouse:clickhouse-client
Maven
< 0.4.6
0.4.6
com.clickhouse:clickhouse-jdbc
Maven
< 0.4.6
0.4.6
com.clickhouse:clickhouse-r2dbc
Maven
< 0.4.6
0.4.6

References

Frequently Asked Questions

What is CVE-2024-23689?
CVE-2024-23689 is a security vulnerability in Clickhouse client involving ClickHouse vulnerable to client certificate password exposure in client exception under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Clickhouse client versions are affected?
Affected versions include releases prior to 0.4.6 across affected packages: com.clickhouse:clickhouse-client, com.clickhouse:clickhouse-jdbc, com.clickhouse:clickhouse-r2dbc.
What version fixes CVE-2024-23689?
Upgrading to 0.4.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clickhouse-client affected?
Yes, com.clickhouse:clickhouse-client is affected in releases prior to 0.4.6. Upgrade your dependency to 0.4.6 or later.
Is clickhouse-jdbc affected?
Yes, com.clickhouse:clickhouse-jdbc is affected in releases prior to 0.4.6. Upgrade your dependency to 0.4.6 or later.
What is the CVSS score of CVE-2024-23689?
CVE-2024-23689 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-23689?
CVE-2024-23689 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check Maven dependencies for CVE-2024-23689?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.clickhouse'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g8ph-74m6-8m7r",
  "modified" : "2026-01-22T20:36:14Z",
  "published" : "2023-05-12T20:18:51Z",
  "aliases" : [ "CVE-2024-23689" ],
  "summary" : "ClickHouse vulnerable to client certificate password exposure in client exception",
  "details" : "### Summary\nAs 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.\n\n### Details\nDuring 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.\n\n### Impact\nThis 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.clickhouse:clickhouse-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.clickhouse:clickhouse-jdbc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.clickhouse:clickhouse-r2dbc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/clickhouse-java/security/advisories/GHSA-g8ph-74m6-8m7r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23689"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/clickhouse-java/issues/1331"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/clickhouse-java/pull/1334"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ClickHouse/clickhouse-java"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/clickhouse-java/releases/tag/v0.4.6"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-g8ph-74m6-8m7r"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-12T20:18:51Z",
    "nvd_published_at" : null
  }
}