CVE-2024-6873

Summary

It is possible to crash or redirect the execution flow of the ClickHouse server process from an unauthenticated vector by sending a specially crafted request to the ClickHouse server native interface. This redirection is limited to what is available within a 256-byte range of memory at the time of execution, and no known remote code execution (RCE) code has been produced or exploited.

 Fixes have been merged to all currently supported version of ClickHouse. If you are maintaining your own forked version of ClickHouse or using an older version and cannot upgrade, the fix for this vulnerability can be found in this commit  https://github.com/ClickHouse/ClickHouse/pull/64024 .

Affected Software

VendorProductVersion RangeStatus
ClickHouseClickHousev23.8.0 < v23.8.15.35-ltsaffected
ClickHouseClickHousev24.3.0 < v24.3.4.147-ltsaffected
ClickHouseClickHousev24.4.0 < v24.4.2.141-stableaffected
ClickHouseClickHousev24.5.0 < v24.5.1.1763affected
ClickHouseClickHousev24.6.0 < v24.6.1.4423-stableaffected

Weaknesses

  • CWE-122: CWE-122 Heap-based Buffer Overflow

Workarounds

ClickHouse recommends locking down native interface to trusted IP addresses only until the system is patched.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

References