Every CVE Search/ Get API key

CVE-2016-5418

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non...

7.5 HighFix available

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

4.67%Up 2.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
CVE-2016-5418
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:P/A:N
Weakness
CWE-19, CWE-20
Updated
2026-11-02
CVE List No score

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
CVE-2016-5418
Updated
2026-11-02
EUVDEUVD-2016-6363 No score

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
EUVD-2016-6363
Updated
2026-11-03
GitHub AdvisoriesGHSA-88p3-99rj-qvrx 7.5

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non...

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
GHSA-88p3-99rj-qvrx
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-20
Updated
2026-11-02
OSV 7.5

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
CVE-2016-5418
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2016-5418 7.5

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
DEBIAN-CVE-2016-5418
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
Show 9 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
OSVRHSA-2016:1852 7.5

Red Hat Security Advisory: Red Hat OpenShift Enterprise 3.1 security update

Record
RHSA-2016:1852
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
OSVRHSA-2016:1853 7.5

Red Hat Security Advisory: Red Hat OpenShift Enterprise 3.2 security update and bug fix update

Record
RHSA-2016:1853
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-5418 7.5

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

Record
UBUNTU-CVE-2016-5418
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVMGASA-2016-0318 No score

Updated libarchive packages fix security vulnerability

The updated packages fix several security vulnerabilities:

A flaw was found in the way libarchive handled hardlink archive entries of non-zero size. Combined with flaws in libarchive's file system sandboxing, this issue could cause an application using libarchive to overwrite arbitrary files with arbitrary data from the archive. (CVE-2016-5418, issues #745 and #746)

Very long pathnames evade symlink checks (issue#744)

size_t underflow leading to out of bounds heap read in process_extra() / archive_read_support_format_zip.c (issue#770)

stack-based buffer overflow in bsdtar_expand_char (util.c) (issue#767)

libarchive can compress, but cannot decompress zip some files (issue#748)

hang in tar parser (issue#731)

Out of bounds read in mtree parser (issue#747)

heap-based buffer overflow in read_Header (archive_read_support_format_7zip.c) (issue#761)

Record
MGASA-2016-0318
Updated
2026-11-02
OSVopenSUSE-SU-2024:10127-1 No score

bsdtar-3.2.2-2.1 on GA media

These are all security issues fixed in the bsdtar-3.2.2-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10127-1
Updated
2026-11-02
OSVSUSE-SU-2016:2911-1 No score

Security update for libarchive

This update for libarchive fixes several issues.

These security issues were fixed:

  • CVE-2016-8687: Buffer overflow when printing a filename (bsc#1005070).
  • CVE-2016-8689: Heap overflow when reading corrupted 7Zip files (bsc#1005072).
  • CVE-2016-8688: Use after free because of incorrect calculation in next_line (bsc#1005076).
  • CVE-2016-5844: Integer overflow in the ISO parser in libarchive allowed remote attackers to cause a denial of service (application crash) via a crafted ISO file (bsc#986566).
  • CVE-2016-6250: Integer overflow in the ISO9660 writer in libarchive allowed remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow (bsc#989980).
  • CVE-2016-5418: The sandboxing code in libarchive mishandled hardlink archive entries of non-zero data size, which might allowed remote attackers to write to arbitrary files via a crafted archive file (bsc#998677).
Record
SUSE-SU-2016:2911-1
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.1-4
3.2.1-4
libarchive
Debian:13
before 3.2.1-4
3.2.1-4
libarchive
Debian:14
before 3.2.1-4
3.2.1-4
libarchive
Debian:7
before 3.0.4-3+wheezy4, plus listed versions
3.0.4-3+nmu13.0.4-3+wheezy13.0.4-3+wheezy23.0.4-3+wheezy3
3.0.4-3+wheezy4
libarchive
Debian:8
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
Mageia:5
before 3.2.1-1.2.mga5
3.2.1-1.2.mga5
libarchive
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
Show 69 moreShow less
Affected packages
PackageAffectedFixed
libarchive-devel
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:7::computenode
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::computenode
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::computenode
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::computenode
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::computenode
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:7::server
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::server
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::server
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::server
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::server
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:7::workstation
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-debuginfo
Red Hat:enterprise_linux:7::workstation
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdcpio
Red Hat:enterprise_linux:7::workstation
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
bsdtar
Red Hat:enterprise_linux:7::workstation
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive-devel
Red Hat:enterprise_linux:7::workstation
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
libarchive
Red Hat:enterprise_linux:6::client
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::client
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::client
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::computenode
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::computenode
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::server
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::server
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::server
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive
Red Hat:enterprise_linux:6::workstation
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
libarchive-devel
Red Hat:enterprise_linux:6::workstation
before 0:2.8.3-7.el6_8
0:2.8.3-7.el6_8
atomic-openshift
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-clients
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-clients-redistributable
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-dockerregistry
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-master
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-node
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-pod
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-recycle
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift-sdn-ovs
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
tuned-profiles-atomic-openshift-node
Red Hat:openshift:3.1::el7
before 0:3.1.1.7-1.git.0.65f396b.el7aos
0:3.1.1.7-1.git.0.65f396b.el7aos
atomic-openshift
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-clients
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-clients-redistributable
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-dockerregistry
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-master
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-node
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-pod
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-recycle
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-sdn-ovs
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-tests
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
atomic-openshift-utils
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
heapster
Red Hat:openshift:3.2::el7
before 0:1.1.0-1.beta2.el7.1
0:1.1.0-1.beta2.el7.1
openshift-ansible
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
openshift-ansible-docs
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
openshift-ansible-filter-plugins
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
openshift-ansible-lookup-plugins
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
openshift-ansible-playbooks
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
openshift-ansible-roles
Red Hat:openshift:3.2::el7
before 0:3.2.28-1.git.0.5a85fc5.el7
0:3.2.28-1.git.0.5a85fc5.el7
tuned-profiles-atomic-openshift-node
Red Hat:openshift:3.2::el7
before 0:3.2.1.15-1.git.0.d84be7f.el7
0:3.2.1.15-1.git.0.d84be7f.el7
libarchive
SUSE:Linux Enterprise Desktop 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Desktop 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 3.1.2-25.1
3.1.2-25.1
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
bsdtar
openSUSE:Tumbleweed
before 3.2.2-2.1
3.2.2-2.1

History

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

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

In short

CVE-2016-5418 is a high vulnerability (CVSS 7.5) in Libarchive, published September 21, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.67%, the 91st percentile. Fixed in libarchive 3.2.1-4.

References

Show 157 moreShow less
MoveEnter Open