Cloudanix VulnDB

CVE-2024-6873

High · 8.1

CVSS

8.1

EPSS

0.7%

Published

Aug 1, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in the ClickHouse database allows attackers to crash or disrupt the server without logging in by sending bad requests.

Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Denial Of Service
Component
Network Service
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Unauthenticated memory corruption in the ClickHouse native interface allowing process crash or limited execution flow redirection within a 256-byte memory window.

Why it matters to the business

Disruption to database availability and potential for targeted service interruption without authentication.

How an attack unfolds

An attacker crafts a malicious request to the ClickHouse server's native interface, triggering memory corruption that can crash the server or redirect execution flow within a constrained 256-byte range.

How to fix it

Upgrade to a supported version with the fix merged. For custom forks, apply the patch from the referenced commit.

How to confirm the fix worked

Verify server version is updated and test connectivity to native interface with standard clients.

Typical attack path

  1. Send specially crafted request to native interface port
  2. Trigger memory corruption leading to crash or limited redirection
  3. Observe impact on server process

How to detect it

Monitor server logs for unexpected crashes or errors related to the native protocol handler; inspect network traffic to the native port for anomalous requests.

What your security team should do

  • Apply available fixes immediately
  • Restrict access to native interface
  • Monitor for server crashes

The record

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 packages

Ecosystem Package Introduced Fixed
Debian:11 clickhouse 0 No fix
Debian:12 clickhouse 0 No fix
Ubuntu:20.04:LTS clickhouse 0 No fix
Ubuntu:24.04:LTS clickhouse 0 No fix
Ubuntu:Pro:20.04:LTS clickhouse 0 No fix

Related vulnerabilities