Integer Overflow or Wraparound Affecting libarchive package, versions [,3.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.11% (79th 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 Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LIBARCHIVE-2318939
  • published14 Dec 2021
  • disclosed21 Sept 2016
  • creditUnknown

Introduced: 21 Sep 2016

CVE-2016-4300  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade libarchive to version 3.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a 7zip file with a large number of substreams, which triggers a heap-based buffer overflow.

CVSS Base Scores

version 3.1