Heap Buffer Overflow in Clickhouse LZ4 Compression Codec
CVE-2021-43304

8.8HIGH

Key Information:

Vendor

Yandex

Vendor
CVE Published:
14 March 2022

What is CVE-2021-43304?

A heap buffer overflow vulnerability exists in Clickhouse's LZ4 compression codec due to inadequate verification during the parsing of malicious queries. The flaw specifically resides in the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end) within the LZ4::decompressImpl function, which does not adequately limit the destination buffer’s capacity. An attacker could exploit this vulnerability by crafting specific input queries, potentially leading to unauthorized actions and compromising the system's integrity.

Affected Version(s)

clickhouse < 21.10.2.15-stable

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.