Out-of-bounds Write Affecting clickhouse package, versions <18.16.1+ds-4+deb10u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.08% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN10-CLICKHOUSE-2432919
  • published25 Mar 2022
  • disclosed14 Mar 2022

Introduced: 14 Mar 2022

CVE-2021-43305  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Debian:10 clickhouse to version 18.16.1+ds-4+deb10u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream clickhouse package and not the clickhouse package as distributed by Debian. See How to fix? for Debian:10 relevant fixed versions and status.

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.

CVSS Scores

version 3.1