CVE-2023-47118: Heap buffer overflow in T64 codec decompression
Vulnerability summary
CVE-2023-47118 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in clickhouse. EPSS estimates a 0.46% chance of exploitation in the next 30 days, higher than 39% of scored vulnerabilities.
Timeline
- 20-12-2023PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time. A heap buffer overflow issue was discovered in ClickHouse server. An attacker could send a specially crafted payload to the native interface exposed by default on port 9000/tcp, triggering a bug in the decompression logic of T64 codec that crashes the ClickHouse server process. This attack does not require authentication. Note that this exploit can also be triggered via HTTP protocol, however, the attacker will need a valid credential as the HTTP authentication take places first. This issue has been fixed in version 23.10.2.13-stable, 23.9.4.11-stable, 23.8.6.16-lts and 23.3.16.7-lts.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.0HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.46%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.46% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Clickhouse2 products
- clickhouse< 23.3.16.7-lts | ≥ 23.3, < 23.3.16.7 | ≥ 23.8, < 23.8.6.16 | ≥ 23.9, < 23.9.4.11 | ≥ 23.10, < 23.10.2.13
- clickhouse_cloud< 23.9.2.47475
Ubuntu1 product
- clickhouseAll versions (No fix recorded)
2 vendors · 3 products
References
3 links- github.com/ClickHouse/ClickHouse/security/advisories/GHSA-g22g-p6q2-x39vX Refsource CONFIRMVendor Advisory