Out-of-bounds Write Affecting libarchive package, versions [0,3.4.1)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.13% (49th 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-LIBARCHIVE-2318959
  • published14 Dec 2021
  • disclosed15 Oct 2020
  • creditUnknown

Introduced: 15 Oct 2020

CVE-2020-21674  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade libarchive to version 3.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. Heap-based buffer overflow in archive_string_append_from_wcs() (archive_string.c) in libarchive-3.4.1dev allows remote attackers to cause a denial of service (out-of-bounds write in heap memory resulting into a crash) via a crafted archive file. NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.

CVSS Scores

version 3.1