SecurityContext

CVE-2021-43304: Clickhouse - Buffer Overflow

  • Cve: CVE-2021-43304
  • Name: Clickhouse - Buffer Overflow
  • 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.
  • Impact: Attackers can cause denial of service or execute arbitrary code through heap buffer overflow during decompression.
  • Remediation: Update to the latest version of Clickhouse where this issue is fixed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01672
  • Epss percentile: 0.77303
  • Assignee: [email protected]
  • Published at: 2022-03-14T23:15:08Z
  • Age in days: 1716
  • Modified at: 2026-06-17T04:10:49Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-43304
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-122Heap-based Buffer Overflow
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbmsnvd2022-03-14

References

UrlSourceTags
https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbmsnvdExploit, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/11/msg00002.htmlnvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
clickhouse:clickhouse< 21.10.2.15nonvd/v1/products/clickhouse/clickhouse
debian:debian_linux= 10.0nonvd/v1/products/debian/debian_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-03-14
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports