CVE-2021-42387

published 14 Mar 2022 · updated 4 Aug 2024

Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query

5.0MediumEPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 21.10.2.15-stable.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Yandex<21.10.2.15-stable21.10.2.15-stable

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-42387 severity on Zeptric[![CVE-2021-42387](https://zeptric.io/badge/cve/CVE-2021-42387.svg)](https://zeptric.io/cve/CVE-2021-42387)