Skip to content

CVE-2021-43304 Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrar...

HighCVSS 8.8 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known
Technology
Debian

Description

Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end), don’t exceed the destination buffer’s limits.

Upgrade path

4 packages: 3 fixed.

PackageAffectedFixed inStatus
ClickHouse < 21.10.2.15 21.10.2.15 Fixed
debian/clickhouse(Debian 12) < 18.16.1+ds-7.3 18.16.1+ds-7.3 Fixed
Yandex clickhouse < 21.10.2.15-stable 21.10.2.15-stable Fixed
debian linux = 10.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/clickhouse(Debian:12) < 18.16.1+ds-7.3 18.16.1+ds-7.3
ClickHouse < 21.10.2.15 21.10.2.15
debian linux = 10.0 No fix listed
Yandex clickhouse < 21.10.2.15-stable 21.10.2.15-stable

References