Lucene search

K
debianDebianDEBIAN:DLA-3176-1:EE60E
HistoryNov 04, 2022 - 6:11 a.m.

[SECURITY] [DLA 3176-1] clickhouse security update

2022-11-0406:11:35
lists.debian.org
14
clickhouse
authentication
user permissions
server crash
memory leak
remote code execution
cve-2021-42387
cve-2021-42388
cve-2021-43304
debian 10 buster

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

9.4

Confidence

High

EPSS

0.001

Percentile

40.3%


Debian LTS Advisory DLA-3176-1 [email protected]
https://www.debian.org/lts/security/ Tobias Frost
November 03, 2022 https://wiki.debian.org/LTS

Package : clickhouse
Version : 18.16.1+ds-4+deb10u1
CVE ID : CVE-2021-42387 CVE-2021-42388 CVE-2021-43304 CVE-2021-43305
Debian Bug : 1008216

Several security vulnerabilities were discovered in clickhouse, a
column-oriented database system.

The vulnerabilities require authentication, but can be triggered by any user
with read permissions. This means the attacker must perform reconnaissance on
the specific ClickHouse server target to obtain valid credentials. Any set of
credentials would do, since even a user with the lowest privileges can trigger
all of the vulnerabilities. By triggering the vulnerabilities, an attacker can
crash the ClickHouse server, leak memory contents or even cause remote code
execution.

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 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.

CVE-2021-42388:
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.

CVE-2021-43304:
Heap buffer overflow in Clickhouse's LZ4 compression codec when
parsing a malicious query. There is no verification that the copy
operations in the LZ4::decompressImpl loop and especially the
arbitrary copy operation wildCopy<copy_amount>(op, ip,
copy_end), don’t exceed the destination buffer’s
limits.

CVE-2021-43305:
Heap buffer overflow in Clickhouse's LZ4 compression codec when
parsing a malicious query. There is no verification that the copy
operations in the LZ4::decompressImpl loop and especially the
arbitrary copy operation wildCopy<copy_amount>(op, ip,
copy_end), don’t exceed the destination buffer’s
limits. This issue is very similar to CVE-2021-43304, but the
vulnerable copy operation is in a different wildCopy call.

For Debian 10 buster, these problems have been fixed in version
18.16.1+ds-4+deb10u1.

We recommend that you upgrade your clickhouse packages.

For the detailed security status of clickhouse please refer to
its security tracker page at:
https://security-tracker.debian.org/tracker/clickhouse

Further information about Debian LTS security advisories, how to apply
these updates to your system and frequently asked questions can be
found at: https://wiki.debian.org/LTS
Attachment:
signature.asc
Description: PGP signature

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

9.4

Confidence

High

EPSS

0.001

Percentile

40.3%