Out-of-bounds Read in Clickhouse
CVE-2021-42387
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS: 0.016 (74.4th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 74th percentile — 74.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.016 · newest: 0.016 · change: 0.000
Affected products
- Clickhouse
- Yandex Clickhouse — versions unspecified
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms (Exploit, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2022/11/msg00002.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-42387?
- CVE-2021-42387 is a high-severity vulnerability in Clickhouse, classified under Out-of-bounds Read. CVSS score: 8.1/10. Published 2022-03-14.
- How severe is CVE-2021-42387?
- High severity. CVSS v3 base score is 8.1 out of 10.