Skip to content

CVE-2021-43305 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
UbuntuDebian

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. This issue is very similar to CVE-2021-43304, but the vulnerable copy operation is in a different wildCopy call.

Upgrade path

5 packages: 4 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
ubuntu/clickhouse(Ubuntu 20.04) < 18.16.1+ds-7ubuntu0.1; = 18.16.1+ds-5; = 18.16.1+ds-5ubuntu1; = 18.16.1+ds-5ubuntu2 +2 more 18.16.1+ds-7ubuntu0.1 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
ubuntu/clickhouse(Ubuntu:20.04) < 18.16.1+ds-7ubuntu0.1 18.16.1+ds-7ubuntu0.1
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5ubuntu1 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5ubuntu2 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-6ubuntu1 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-7 No fix listed

References