CVE-2021-42388
published 2022-03-14CVE-2021-42388: 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…
PriorityP342high8.1CVSS 3.1
AVNACLPRLUINSUCHINAH
EPSS
1.55%
72.0th 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 lower bounds of the source of the copy operation.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| clickhouse | clickhouse | < 21.10.2.15 | 21.10.2.15 |
| clickhouse | clickhouse | >= 0 < 18.16.1+ds-7.2+deb11u1 | 18.16.1+ds-7.2+deb11u1 |
| clickhouse | clickhouse | >= 0 < 18.16.1+ds-7.3 | 18.16.1+ds-7.3 |
| debian | clickhouse | < clickhouse 18.16.1+ds-7.3 (bookworm) | clickhouse 18.16.1+ds-7.3 (bookworm) |
| debian | debian_linux | — | — |
| yandex | clickhouse | >= unspecified < 21.10.2.15-stable | 21.10.2.15-stable |
CVSS provenance
nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
nvdv2.05.5MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:P
osv8.1HIGH
vendor_debian8.1HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-gg7g-5hm7-ggx5: Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query
ghsa_unreviewed·2022-03-16
CVE-2021-42388 [HIGH] CWE-125 GHSA-gg7g-5hm7-ggx5: Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query
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 lower bounds of the source of the copy operation.
OSV
CVE-2021-42388: Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query
osv·2022-03-14·CVSS 8.1
CVE-2021-42388 [HIGH] CVE-2021-42388: Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query
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 lower bounds of the source of the copy operation.
Ubuntu
ClickHouse vulnerabilities
vendor_ubuntu·2024-07-31·CVSS 7.8
CVE-2021-42388 [HIGH] ClickHouse vulnerabilities
Title: ClickHouse vulnerabilities
Summary: Several security issues were fixed in ClickHouse.
It was discovered that ClickHouse incorrectly handled memory, leading to a
heap out-of-bounds data read. An attacker could possibly use this issue to
cause a denial of service, or leak sensitive information.
(CVE-2021-42387, CVE-2021-41388)
It was discovered that ClickHouse incorrectly handled memory, leading to a
heap-based buffer overflow. An attacker could possibly use this issue to
cause a denial of service, or execute arbitrary code. (CVE-2021-43305)
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2021-42388: clickhouse - Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a mal...
vendor_debian·2021·CVSS 8.1
CVE-2021-42388 [HIGH] CVE-2021-42388: clickhouse - Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a mal...
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 lower bounds of the source of the copy operation.
Scope: local
bookworm: resolved (fixed in 18.16.1+ds-7.3)
bullseye: resolved (fixed in 18.16.1+ds-7.2+deb11u1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-03-14
Published