CVE-2021-43304 Memory corruption in clickhouse
A heap buffer overflow in ClickHouse's LZ4 codec allows attackers to execute arbitrary code or cause denial of service via malicious queries.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-43304?
CVE-2021-43304 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 14 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-43304?
It affects 2 products.
Products include Clickhouse Clickhouse, Debian Debian Linux.
How do I fix CVE-2021-43304?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-43304 being exploited?
There is no known exploitation of CVE-2021-43304 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2021-43304, GHSA-4px5-4p3v-7568.