Buffer Overflow Affecting clickhouse/clickhouse package, versions [,21.10.2.15-stable)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
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-UNMANAGED-CLICKHOUSECLICKHOUSE-3104642
  • published4 Nov 2022
  • disclosed4 Nov 2022
  • creditJFrog Security Research Team

Introduced: 4 Nov 2022

CVE-2021-43304  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade clickhouse/clickhouse to version 21.10.2.15-stable or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow in the LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and the arbitrary copy operation wildCopy<copy_amount>(op, ip, copy_end), don’t exceed the destination buffer’s limits.

CVSS Scores

version 3.1