CVE-2021-42387

clickhouse: Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query

CVE-2021-42387 is fixed in 5 products on 1 platform, first by clickhouse-client 18.16.1+ds-7ubuntu0.1, released March 14, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
8.1
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0157
75th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
clickhouse · Debian 12.15 (bookworm) 18.16.1+ds-7.3 DEBIAN-CVE-2021-42387 Mar 14, 2022
clickhouse-client · Ubuntu 20.04 LTS (focal) 18.16.1+ds-7ubuntu0.1 clickhouse-client 18.16.1+ds-7ubuntu0.1 Mar 14, 2022
clickhouse-common · Ubuntu 20.04 LTS (focal) 18.16.1+ds-7ubuntu0.1 clickhouse-common 18.16.1+ds-7ubuntu0.1 Mar 14, 2022
clickhouse-server · Ubuntu 20.04 LTS (focal) 18.16.1+ds-7ubuntu0.1 clickhouse-server 18.16.1+ds-7ubuntu0.1 Mar 14, 2022
clickhouse-tools · Ubuntu 20.04 LTS (focal) 18.16.1+ds-7ubuntu0.1 clickhouse-tools 18.16.1+ds-7ubuntu0.1 Mar 14, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.