CVE-2021-42387

State
Published
Severity
Not scored
Published
Mar 14, 2022
Updated
Aug 4, 2024
Reserved
Oct 14, 2021

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

Affected Products

ProductVersions
clickhouseyandex
  • before 21.10.2.15-stableAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.