CVE-2021-42387 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 t...
HighCVSS 8.1
EPSS 1.6%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
5 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ClickHouse | < 21.10.2.15 | 21.10.2.15 | Fixed |
| debian/clickhouse(Debian 12) | < 18.16.1+ds-7.3 | 18.16.1+ds-7.3 | Fixed |
| ubuntu/clickhouse(Ubuntu 20.04) | < 18.16.1+ds-7ubuntu0.1; = 18.16.1+ds-5; = 18.16.1+ds-5ubuntu1; = 18.16.1+ds-5ubuntu2 +2 more | 18.16.1+ds-7ubuntu0.1 | Fixed |
| Yandex clickhouse | < 21.10.2.15-stable | 21.10.2.15-stable | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/clickhouse(Debian:12) | < 18.16.1+ds-7.3 | 18.16.1+ds-7.3 |
| ClickHouse | < 21.10.2.15 | 21.10.2.15 |
| debian linux | = 10.0 | No fix listed |
| Yandex clickhouse | < 21.10.2.15-stable | 21.10.2.15-stable |
| ubuntu/clickhouse(Ubuntu:20.04) | < 18.16.1+ds-7ubuntu0.1 | 18.16.1+ds-7ubuntu0.1 |
| ubuntu/clickhouse(Ubuntu:20.04) | = 18.16.1+ds-5 | No fix listed |
| ubuntu/clickhouse(Ubuntu:20.04) | = 18.16.1+ds-5ubuntu1 | No fix listed |
| ubuntu/clickhouse(Ubuntu:20.04) | = 18.16.1+ds-5ubuntu2 | No fix listed |
| ubuntu/clickhouse(Ubuntu:20.04) | = 18.16.1+ds-6ubuntu1 | No fix listed |
| ubuntu/clickhouse(Ubuntu:20.04) | = 18.16.1+ds-7 | No fix listed |
References
- Debian Security Tracker CVE-2021-42387 vendor-advisory
- jfrog.com exploit issue-tracking third-party-advisory
- [debian-lts-announce] 20221104 [SECURITY] [DLA 3176-1] clickhouse security update mailing-list third-party-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- www.cve.org issue-tracking
- ubuntu.com vendor-advisory