CVE-2021-42389 Denial of service in clickhouse

Medium 6.5 Published Updated

An attacker can cause a denial of service in ClickHouse by submitting a malicious query that triggers a divide-by-zero error in the Delta compression codec.

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

What is CVE-2021-42389?

CVE-2021-42389 is a medium-severity denial of service vulnerability in yandex clickhouse, published on 14 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Divide-by-zero in Clickhouse's Delta compression codec when parsing a malicious query. The first byte of the compressed buffer is used in a modulo operation without being checked for 0.

Weakness: CWE-369

Which versions are affected by CVE-2021-42389?

It affects 1 product.

Products include Clickhouse Clickhouse.

How do I fix CVE-2021-42389?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-42389 being exploited?

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

Sources

Also known as GHSA-xfh5-vqx3-c7p9.

Is CVE-2021-42389 in your software?

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

Check your SBOMs for free