Data Handling in libarchive - CVE-2016-5418
Published: September 21, 2016 / Updated: August 3, 2020
Vulnerability identifier: #VU33271
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5418
CWE-ID: CWE-19
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to manipulate data.
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.
Affected software
libarchive
libarchive (Alpine package)
atomic-openshift (Red Hat package)
openshift-ansible (Red Hat package)
Red Hat OpenShift Container Platform
libarchive (Alpine package)
atomic-openshift (Red Hat package)
openshift-ansible (Red Hat package)
Red Hat OpenShift Container Platform
How to mitigate CVE-2016-5418
Install update from vendor's website.
libarchive - update to 3.2.1
libarchive (Alpine package) - update to 3.2.1-r0
atomic-openshift (Red Hat package) - update to 3.2.1.15-1.git.0.d84be7f.el7
openshift-ansible (Red Hat package) - update to 3.2.28-1.git.0.5a85fc5.el7
libarchive (Alpine package) - update to 3.2.1-r0
atomic-openshift (Red Hat package) - update to 3.2.1.15-1.git.0.d84be7f.el7
openshift-ansible (Red Hat package) - update to 3.2.28-1.git.0.5a85fc5.el7
External References
- http://rhn.redhat.com/errata/RHSA-2016-1844.html
- http://rhn.redhat.com/errata/RHSA-2016-1850.html
- http://www.openwall.com/lists/oss-security/2016/08/09/2
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://www.securityfocus.com/bid/93165
- https://access.redhat.com/errata/RHSA-2016:1852
- https://access.redhat.com/errata/RHSA-2016:1853
- https://bugzilla.redhat.com/show_bug.cgi?id=1362601
- https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f
- https://github.com/libarchive/libarchive/commit/dfd6b54ce33960e420fb206d8872fb759b577ad9
- https://github.com/libarchive/libarchive/issues/746
- https://security.gentoo.org/glsa/201701-03