Vulnerabilities · 2021 · Clickhouse
CVE-2021-42387
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 upper bounds of the source of the copy operation.
Affected products
Clickhouse, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Clickhouse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Clickhouse products
CVE-2025-1386CVE-2024-41436CVE-2024-22412CVE-2023-48704CVE-2023-48298CVE-2023-47118CVE-2022-44011CVE-2022-44010All 24
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.