Vulnerability · Published Jan 19, 2024 · Assigned by VulnCheck
CVE-2024-23689ClickHouse Client Certificate Password Exposure
High 8.8
In plain English
A high-severity security flaw in com.clickhouse:clickhouse-client. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Exposure of sensitive information in exceptions in ClichHouse's clickhouse-r2dbc, com.clickhouse:clickhouse-jdbc, and com.clickhouse:clickhouse-client versions less than 0.4.6 allows unauthorized users to gain access to client certificate passwords via client exception logs. This occurs when 'sslkey' is specified and an exception, such as a ClickHouseException or SQLException, is thrown during database operations; the certificate password is then included in the logged exception message.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.clickhouse:clickhouse-client | 0.4.6 | GHSA-g8ph-74m6-8m7r |
| Maven | com.clickhouse:clickhouse-jdbc | 0.4.6 | GHSA-g8ph-74m6-8m7r |
| Maven | com.clickhouse:clickhouse-r2dbc | 0.4.6 | GHSA-g8ph-74m6-8m7r |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| com.clickhouse:clickhouse-r2dbc | 0 – before 0.4.6 | |
| com.clickhouse:clickhouse-jdbc | 0 – before 0.4.6 | |
| com.clickhouse:clickhouse-client | 0 – before 0.4.6 |
Weakness: CWE-209 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/ClickHouse/clickhouse-java/security/advisories/GHSA-g8ph-74m6-8m7r vendor-advisory
- https://github.com/ClickHouse/clickhouse-java/issues/1331 issue-tracking
- https://github.com/ClickHouse/clickhouse-java/pull/1334 issue-tracking
- https://github.com/ClickHouse/clickhouse-java/releases/tag/v0.4.6 related
- https://github.com/advisories/GHSA-g8ph-74m6-8m7r vendor-advisory
- https://vulncheck.com/advisories/vc-advisory-GHSA-g8ph-74m6-8m7r third-party-advisory