8.1high
Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query.
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 1.57% (higher than 76% of CVEs)
- Published
- Last changed
- Assigned by
- JFROG
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| yandex clickhouse | from unspecified before 21.10.2.15-stable | CVE List |
| clickhouse clickhouse | before 21.10.2.15 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 5.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Una lectura fuera de límites de la pila en el códec de compresión LZ4 de Clickhouse cuando es analizada una consulta maliciosa. Como parte del bucle LZ4::decompressImpl(), es leído un valor de 16 bits sin signo proporcionado por el usuario ("offset") de los datos comprimidos. El offset es usado posteriormente en la longitud de una operación de copia, sin comprobar los límites superiores del origen de la operación de copia
References
| https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms | exploit, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42387 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-42387 changed 2026-06-17 | Public domain |