CVEvulnerability

CVE-2021-42387

8.1 HIGH Published 2022-03-14 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-03-14
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CVSS 2.0 ([email protected])
5.5 MEDIUM — AV:N/AC:L/Au:S/C:P/I:N/A:P
Weaknesses
CWE-125

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 configurations

• clickhouse clickhouse (< 21.10.2.15) • debian debian linux 10.0

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References