Vulnerabilities in pkg:maven/com.clickhouse/clickhouse-client
PACKAGECVE-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.
pkg:maven/com.clickhouse/clickhouse-client
Vulnerability advisories affecting package pkg:maven/com.clickhouse/clickhouse-client. 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
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).
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.
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-client</artifactId>
<version>0.4.6</version>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.4.6</version>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-r2dbc</artifactId>
<version>0.4.6</version>
</dependency>
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
CVE-2024-23689 Affected Clickhouse client Versions
3 component(s)| 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?
Which Clickhouse client versions are affected?
What version fixes CVE-2024-23689?
Is clickhouse-client affected?
Is clickhouse-jdbc affected?
What is the CVSS score of CVE-2024-23689?
What CWE is associated with CVE-2024-23689?
How can I check Maven dependencies for CVE-2024-23689?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}