Heap Out-of-Bounds Read in Clickhouse's LZ4 Compression Codec

Heap Out-of-Bounds Read in Clickhouse's LZ4 Compression Codec

CVE-2021-42387 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

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.

Learn more about our User Device Pen Test.