CVE-2021-42387
JSON

8.1high

Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query.

Severity
8.1high CVSS:3.1 by NVD
Exploit likelihood
1.57% (higher than 76% of CVEs)
Published
Last changed
Assigned by
JFROG

Description

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

Product or packageVersionsReported by
yandex clickhousefrom unspecified before 21.10.2.15-stableCVE List
clickhouse clickhousebefore 21.10.2.15NVD
debian debian_linux10.0NVD

All scores

NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD5.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Una lectura fuera de límites de la pila en el códec de compresión LZ4 de Clickhouse cuando es analizada una consulta maliciosa. Como parte del bucle LZ4::decompressImpl(), es leído un valor de 16 bits sin signo proporcionado por el usuario ("offset") de los datos comprimidos. El offset es usado posteriormente en la longitud de una operación de copia, sin comprobar los límites superiores del origen de la operación de copia

References

Sources

SourceRecordLicence
CVE ListCVE-2021-42387 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-42387 changed 2026-06-17Public domain