CVE-2021-42388: High severity clickhouse vulnerability
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 lower bounds of the source of the copy operation.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-42388?
CVE-2021-42388 has a high severity rating due to the heap out-of-bounds read vulnerability that can be exploited by attackers.
How do I fix CVE-2021-42388?
To remediate CVE-2021-42388, upgrade ClickHouse to version 21.10.2.15 or later, or apply the specific patches provided for affected Debian packages.
What causes the vulnerability in CVE-2021-42388?
CVE-2021-42388 is caused by a flaw in the LZ4 compression codec that allows unsanitized user input to lead to out-of-bounds reads.
Which versions of ClickHouse are affected by CVE-2021-42388?
CVE-2021-42388 affects ClickHouse versions prior to 21.10.2.15.
Can CVE-2021-42388 lead to remote code execution?
While CVE-2021-42388 primarily results in a denial of service, it can potentially be leveraged in combination with other vulnerabilities for malicious purposes.