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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2021-43304 vendor-advisory
- jfrog.com exploit third-party-advisory
- [debian-lts-announce] 20221104 [SECURITY] [DLA 3176-1] clickhouse security update mailing-list third-party-advisory
- bugs.debian.org issue-tracking