VULNERABILITY INTELLIGENCE
CVE-2021-42388
CVSS score8.1 HIGH
EPSS probability1.57%
CISA KEVNot currently listed
Published2022-03-14
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
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 lower bounds of the source of the copy operation.
Weakness classification
- reefs@jfrog.com: CWE-125
- nvd@nist.gov: CWE-125
Primary references
- reefs@jfrog.com — Exploit, Third Party Advisory
- reefs@jfrog.com — Mailing List, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Mailing List, Third Party Advisory