CONTENTUM.COMA specialist. A plan. A result.

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

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.