Vulnerability record · CVE-2021-43304 · published 14 March 2022
CVE-2021-43304: Clickhouse heap-based buffer overflow vulnerability
Clickhouse · Clickhouse
Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end), don’t exceed the destination buffer’s limits.
Description
Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end), don’t exceed the destination buffer’s limits.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms | ExploitThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html | Mailing ListThird Party Advisory |
| https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms | ExploitThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html | Mailing ListThird Party Advisory |
Track CVE-2021-43304 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-43304), CISA KEV, FIRST EPSS (scores of 2026-11-11). This page is refreshed as NVD updates the record.