CVE-2024-6873 Specially crafted request could caused undefined behaviour which may lead to Remote Code Execution.

High 8.1 Published Updated

Unauthenticated attackers can trigger memory corruption in ClickHouse via crafted requests, potentially causing crashes or limited code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-6873?

CVE-2024-6873 is a high-severity memory corruption vulnerability in ClickHouse, published on 1 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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 .

Weakness: CWE-122

Which versions are affected by CVE-2024-6873?

How do I fix CVE-2024-6873?

No fix has been published for CVE-2024-6873 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-6873 being exploited?

There is no known exploitation of CVE-2024-6873 in the wild and no public exploit code.

Sources

Also known as GHSA-432f-r822-j66f, UBUNTU-CVE-2024-6873.

Is CVE-2024-6873 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free