Every CVE Search/ Get API key

CVE-2016-7166

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows...

5.5 MediumFix available

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.64%Down 0.3 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 5.5

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
CVE-2016-7166
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-399
Updated
2026-11-02
CVE List No score

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
CVE-2016-7166
Updated
2026-11-02
EUVDEUVD-2016-8034 No score

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
EUVD-2016-8034
Updated
2026-11-03
GitHub AdvisoriesGHSA-8hwj-j49v-pfwp 5.5

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows...

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
GHSA-8hwj-j49v-pfwp
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 5.5

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
CVE-2016-7166
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-7166 5.5

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
DEBIAN-CVE-2016-7166
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVRHSA-2016:1844 8.4

Red Hat Security Advisory: libarchive security update

Record
RHSA-2016:1844
CVSS 3.0
8.4 HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
Updated
2026-11-02
OSVRHSA-2016:1850 7.5

Red Hat Security Advisory: libarchive security update

Record
RHSA-2016:1850
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-7166 5.5

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

Record
UBUNTU-CVE-2016-7166
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUSN-3225-1 No score

libarchive vulnerabilities

It was discovered that libarchive incorrectly handled hardlink entries when extracting archives. A remote attacker could possibly use this issue to overwrite arbitrary files. (CVE-2016-5418)

Christian Wressnegger, Alwin Maier, and Fabian Yamaguchi discovered that libarchive incorrectly handled filename lengths when writing ISO9660 archives. A remote attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-6250)

Alexander Cherepanov discovered that libarchive incorrectly handled recursive decompressions. A remote attacker could possibly use this issue to cause libarchive to hang, resulting in a denial of service. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-7166)

It was discovered that libarchive incorrectly handled non-printable multibyte characters in filenames. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8687)

It was discovered that libarchive incorrectly handled line sizes when extracting certain archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8688)

It was discovered that libarchive incorrectly handled multiple EmptyStream attributes when extracting certain 7zip archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8689)

Jakub Jirasek discovered that libarchive incorrectly handled memory when extracting certain archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2017-5601)

Record
USN-3225-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libarchive
Debian:12
before 3.2.0-2
3.2.0-2
libarchive
Debian:13
before 3.2.0-2
3.2.0-2
libarchive
Debian:14
before 3.2.0-2
3.2.0-2
libarchive
Debian:7
From an advisory covering 2 CVEs
before 3.0.4-3+wheezy3, plus listed versions
3.0.4-3+nmu13.0.4-3+wheezy13.0.4-3+wheezy2
3.0.4-3+wheezy3
libarchive
Debian:8
From an advisory covering 3 CVEs
before 3.1.2-11+deb8u3, plus listed versions
3.1.2-113.1.2-11+deb8u13.1.2-11+deb8u23.1.2-11+deb8u3~bpo70+1
3.1.2-11+deb8u3
libarchive
Red Hat:enterprise_linux:7::client
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::client
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::client
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
Show 31 moreShow less
Affected packages
PackageAffectedFixed
libarchive
Red Hat:enterprise_linux:7::computenode
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::computenode
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::computenode
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:7::server
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::server
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::server
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:7::workstation
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::workstation
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::workstation
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 23 CVEs
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:6::client
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::client
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::client
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::computenode
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::computenode
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::computenode
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::server
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::server
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::server
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::workstation
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::workstation
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::workstation
From an advisory covering 7 CVEs
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Ubuntu:14.04:LTS
before 3.1.2-7ubuntu2.4, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.23.1.2-7ubuntu2.3
3.1.2-7ubuntu2.4
libarchive
Ubuntu:16.04:LTS
before 3.1.2-11ubuntu0.16.04.3, plus listed versions
3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.2
3.1.2-11ubuntu0.16.04.3
libarchive
Ubuntu:14.04:LTS
From an advisory covering 7 CVEs
before 3.1.2-7ubuntu2.4, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.23.1.2-7ubuntu2.3
3.1.2-7ubuntu2.4
libarchive
Ubuntu:16.04:LTS
From an advisory covering 7 CVEs
before 3.1.2-11ubuntu0.16.04.3, plus listed versions
3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.2
3.1.2-11ubuntu0.16.04.3

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-7166 is a medium vulnerability (CVSS 5.5) in Libarchive, published September 10, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.64%, the 76th percentile. Fixed in libarchive 3.2.0-2.

References

Show 115 moreShow less
MoveEnter Open