clickhouse: Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query
CVE-2021-43305 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.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| clickhouse · Debian 12.15 (bookworm) | 18.16.1+ds-7.3 | DEBIAN-CVE-2021-43305 | 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.