cbcvebase.
CVE-2021-42387
published 2022-03-14

CVE-2021-42387: 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 upper bounds of the source of the copy operation.

Affected

7 ranges
VendorProductVersion rangeFixed in
clickhouseclickhouse< 21.10.2.1521.10.2.15
clickhouseclickhouse>= 0 < 18.16.1+ds-7.2+deb11u118.16.1+ds-7.2+deb11u1
clickhouseclickhouse>= 0 < 18.16.1+ds-7.318.16.1+ds-7.3
clickhouseclickhouse>= 0 < 18.16.1+ds-7ubuntu0.118.16.1+ds-7ubuntu0.1
debianclickhouse< clickhouse 18.16.1+ds-7.3 (bookworm)clickhouse 18.16.1+ds-7.3 (bookworm)
debiandebian_linux
yandexclickhouse>= unspecified < 21.10.2.15-stable21.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.