CVE-2021-42391: Divide by Zero
Published Mar 14, 2022
·Updated
Divide-by-zero in Clickhouse's Gorilla 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.
Affected Software
2 affected components
Yandex Clickhouse<21.10.2.15
Clickhouse Clickhouse<21.10.2.15
Event History
Mar 14, 2022
CVE Published
via MITRE·10:20 PM
Data Sourced
via MITRE·10:20 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Frequently Asked Questions
1
What is the severity of CVE-2021-42391?
CVE-2021-42391 is classified as a high severity vulnerability due to the potential for denial of service caused by a divide-by-zero error.
2
How do I fix CVE-2021-42391?
To fix CVE-2021-42391, upgrade to ClickHouse version 21.10.2.15 or later.
3
What software is affected by CVE-2021-42391?
CVE-2021-42391 affects ClickHouse versions prior to 21.10.2.15.
4
What type of attack does CVE-2021-42391 enable?
CVE-2021-42391 enables a denial of service attack by exploiting a divide-by-zero vulnerability.
5
Can CVE-2021-42391 be exploited through a malicious query?
Yes, CVE-2021-42391 can be triggered by sending a malicious query that takes advantage of the Gorilla compression codec.