Out-of-bounds Write Affecting lz4/lz4 package, versions [,1.9.2)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
1.04% (84th 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-LZ4LZ4-2319130
  • published14 Dec 2021
  • disclosed14 Oct 2019
  • creditUnknown

Introduced: 14 Oct 2019

CVE-2019-17543  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade lz4/lz4 to version 1.9.2 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. LZ4 before 1.9.2 has a heap-based buffer overflow in LZ4_write32 (related to LZ4_compress_destSize), affecting applications that call LZ4_compress_fast with a large input. (This issue can also lead to data corruption.) NOTE: the vendor states "only a few specific / uncommon usages of the API are at risk."

CVSS Scores

version 3.1