CVE-2021-42387
Last modified
CVE-2021-42387 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 1.55% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Clickhouse | Clickhouse | < 21.10.2.15 |
| Debian | Debian Linux | 10.0 |
References
- https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbmsExploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/11/msg00002.htmlMailing List, Third Party Advisory
- https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbmsExploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/11/msg00002.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-42387?
How severe is CVE-2021-42387?
How do I fix CVE-2021-42387?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-42381A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42382A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42383A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42384A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42385A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42386A use-after-free in Busybox's awk applet leads to denial of …7.2
- CVE-2021-42388Heap out-of-bounds read in Clickhouse's LZ4 compression code…8.1
- CVE-2021-42389Divide-by-zero in Clickhouse's Delta compression codec when …6.5
- CVE-2021-4239The Noise protocol implementation suffers from weakened cryp…7.5
- CVE-2021-42390Divide-by-zero in Clickhouse's DeltaDouble compression codec…6.5
- CVE-2021-42391Divide-by-zero in Clickhouse's Gorilla compression codec whe…6.5
- CVE-2021-42392The org.h2.util.JdbcUtils.getConnection method of the H2 dat…9.8
Are you affected by CVE-2021-42387?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
