CVE-2021-42388: High severity clickhouse vulnerability

Published Mar 14, 2022
·
Updated

Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query. As part of the LZ4::decompressImpl() loop, a 16-bit unsigned user-supplied value ('offset') is read from the compressed data. The offset is later used in the length of a copy operation, without checking the lower bounds of the source of the copy operation.

Affected Software

4 affected componentsFixes available
debian/clickhouse
18.16.1+ds-7.2+deb11u118.16.1+ds-7.318.16.1+ds-7.4
Yandex Clickhouse<21.10.2.15
Debian Debian Linux=10.0
Clickhouse Clickhouse<21.10.2.15

Event History

Mar 14, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Aug 1, 2024
Data Sourced
via Launchpad·05:38 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-42388?

CVE-2021-42388 has a high severity rating due to the heap out-of-bounds read vulnerability that can be exploited by attackers.

2

How do I fix CVE-2021-42388?

To remediate CVE-2021-42388, upgrade ClickHouse to version 21.10.2.15 or later, or apply the specific patches provided for affected Debian packages.

3

What causes the vulnerability in CVE-2021-42388?

CVE-2021-42388 is caused by a flaw in the LZ4 compression codec that allows unsanitized user input to lead to out-of-bounds reads.

4

Which versions of ClickHouse are affected by CVE-2021-42388?

CVE-2021-42388 affects ClickHouse versions prior to 21.10.2.15.

5

Can CVE-2021-42388 lead to remote code execution?

While CVE-2021-42388 primarily results in a denial of service, it can potentially be leveraged in combination with other vulnerabilities for malicious purposes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203