← Back to CVEs
CVE-2021-42387
HIGH8.1
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.
CVE Details
CVSS v3.1 Score8.1
SeverityHIGH
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredLOW
User InteractionNONE
Published3/14/2022
Last Modified6/25/2025
Sourcenvd
Honeypot Sightings0
Affected Products
clickhouse:clickhousedebian:debian_linux
Weaknesses (CWE)
CWE-125CWE-125
References
https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html(reefs@jfrog.com)
https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms(af854a3a-2127-422b-91ae-364da2661108)
https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.