CVE-2021-43304
NixOS vulnerability analysis and mitigation

Overview

A heap buffer overflow vulnerability (CVE-2021-43304) was discovered in ClickHouse's LZ4 compression codec when parsing malicious queries. The vulnerability was discovered in March 2022 and affects ClickHouse versions prior to v21.10.2.15-stable. The vulnerability requires authentication but can be triggered by any user with read permissions, even those with the lowest privileges (JFrog Blog, Hacker News).

Technical details

The vulnerability exists in the LZ4 compression codec's decompression implementation. When processing compressed queries, there is no verification that copy operations in the LZ4::decompressImpl loop, particularly the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end), don't exceed the destination buffer's limits. The vulnerability has a CVSSv3.1 score of 8.8, indicating high severity (JFrog Blog).

Impact

By exploiting this vulnerability, an attacker can potentially achieve remote code execution (RCE) on affected ClickHouse servers. The vulnerability allows for heap buffer overflow, which can lead to arbitrary code execution through controlled memory corruption (JFrog Blog, Hacker News).

Mitigation and workarounds

Users are recommended to update ClickHouse to version v21.10.2.15-stable or later. If upgrading is not immediately possible, administrators can implement firewall rules to restrict access to the web port (8123) and TCP server's port (9000) to specific clients only (JFrog Blog).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16412CRITICAL9.8
  • NixOS logoNixOS
  • rhel10::thunderbird-flatpak
NoYesJul 21, 2026
CVE-2026-16411CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16410CRITICAL9.8
  • NixOS logoNixOS
  • mozjs38
NoYesJul 21, 2026
CVE-2026-16408CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16409HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management