Integer Overflow or Wraparound Affecting lz4-debugsource package, versions <0:1.9.4-1.amzn2023.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.3% (70th 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-AMZN2023-LZ4DEBUGSOURCE-3340078
  • published6 Mar 2023
  • disclosed2 Jun 2021

Introduced: 2 Jun 2021

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

How to fix?

Upgrade Amazon-Linux:2023 lz4-debugsource to version 0:1.9.4-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2023-015.

NVD Description

Note: Versions mentioned in the description apply only to the upstream lz4-debugsource package and not the lz4-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.

CVSS Scores

version 3.1