CVE-2021-42387: 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 upper 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-42387?

CVE-2021-42387 is considered a high severity vulnerability due to the potential for heap out-of-bounds reads.

2

How do I fix CVE-2021-42387?

To fix CVE-2021-42387, update ClickHouse to versions 18.16.1+ds-7.2+deb11u1, 18.16.1+ds-7.3, or 18.16.1+ds-7.4.

3

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

CVE-2021-42387 affects versions of ClickHouse prior to 21.10.2.15.

4

What type of vulnerability is CVE-2021-42387?

CVE-2021-42387 is a heap out-of-bounds read vulnerability that may allow attackers to exploit the LZ4 compression codec.

5

Can CVE-2021-42387 lead to denial of service?

Yes, CVE-2021-42387 may lead to denial of service if exploited successfully.

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