CVE-2024-6873
High · 8.1CVSS
8.1
EPSS
0.7%
Published
Aug 1, 2024
CISA due date
—
Cloudanix analysis
A flaw in the ClickHouse database allows attackers to crash or disrupt the server without logging in by sending bad requests.
- 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
- Send specially crafted request to native interface port
- Trigger memory corruption leading to crash or limited redirection
- 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
- CVE-2024-41436 ClickHouse v24.3.3.102 was discovered to contain a buffer overflow via the component… Also affects clickhouse
- CVE-2024-22412 ClickHouse is an open-source column-oriented database management system. Also affects clickhouse
- CVE-2023-48704 ClickHouse is an open-source column-oriented database management system that allows… Also affects clickhouse
- CVE-2023-48298 ClickHouse® is an open-source column-oriented database management system that allows… Also affects clickhouse
- CVE-2023-47118 ClickHouse® is an open-source column-oriented database management system that allows… Also affects clickhouse
- CVE-2022-44011 An issue was discovered in ClickHouse before 22.9.1.2603. Also affects clickhouse
- CVE-2022-44010 An issue was discovered in ClickHouse before 22.9.1.2603. Also affects clickhouse
- CVE-2026-112403 Pillow is a Python imaging library. CWE-122