Out-of-bounds Read in Clickhouse
CVE-2021-42387
Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query. As part of the LZ4::decompressImpl() loop, a 16-bit unsigned user-supplied value ('offset') is read from the compressed data. The offset is later used in the length of a copy operation, without checking the upper bounds of the source of the copy operation.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS 0.016, 75.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Clickhouse
- Yandex Clickhouse — versions unspecified
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms (Exploit, Third Party Advisory)
- [debian-lts-announce] 20221104 [SECURITY] [DLA 3176-1] clickhouse security update (mailing-list, Mailing List, Third Party Advisory)