CVE-2016-4301
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c...
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree 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
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
CVE-2016-4301- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
CVE-2016-4301- Updated
- 2026-11-02
EUVDEUVD-2016-5301 No score
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
EUVD-2016-5301- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-r3m8-9hr7-7xwr
7.8
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c...
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
GHSA-r3m8-9hr7-7xwr- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSV
7.8
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
CVE-2016-4301- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-4301
7.8
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
DEBIAN-CVE-2016-4301- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2016-4301
7.8
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.
- Record
UBUNTU-CVE-2016-4301- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0239 No score
Updated libarchive packages fix security vulnerability
An out of bounds read in the rar parser: invalid read in function copy_from_lzss_window() when unpacking malformed rar (CVE-2015-8934).
An exploitable heap overflow vulnerability exists in the 7zip read_SubStreamsInfo functionality of libarchive. A specially crafted 7zip file can cause a integer overflow resulting in memory corruption that can lead to code execution. An attacker can send a malformed file to trigger this vulnerability (CVE-2016-4300).
An exploitable stack based buffer overflow vulnerability exists in the mtree parse_device functionality of libarchive. A specially crafted mtree file can cause a buffer overflow resulting in memory corruption/code execution. An attacker can send a malformed file to trigger this vulnerability (CVE-2016-4301).
An exploitable heap overflow vulnerability exists in the Rar decompression functionality of libarchive. A specially crafted Rar file can cause a heap corruption eventually leading to code execution. An attacker can send a malformed file to trigger this vulnerability (CVE-2016-4302).
A signed integer overflow in iso parser: integer overflow when computing location of volume descriptor (CVE-2016-5844).
The libarchive package has been updated to version 3.2.1, fixing those issues and other bugs.
- Record
MGASA-2016-0239- 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:1909-1 No score
Security update for libarchive
libarchive was updated to fix 20 security issues.
These security issues were fixed:
- CVE-2015-8918: Overlapping memcpy in CAB parser (bsc#985698).
- CVE-2015-8919: Heap out of bounds read in LHA/LZH parser (bsc#985697).
- CVE-2015-8920: Stack out of bounds read in ar parser (bsc#985675).
- CVE-2015-8921: Global out of bounds read in mtree parser (bsc#985682).
- CVE-2015-8922: Null pointer access in 7z parser (bsc#985685).
- CVE-2015-8923: Unclear crashes in ZIP parser (bsc#985703).
- CVE-2015-8924: Heap buffer read overflow in tar (bsc#985609).
- CVE-2015-8925: Unclear invalid memory read in mtree parser (bsc#985706).
- CVE-2015-8926: NULL pointer access in RAR parser (bsc#985704).
- CVE-2015-8928: Heap out of bounds read in mtree parser (bsc#985679).
- CVE-2015-8929: Memory leak in tar parser (bsc#985669).
- CVE-2015-8930: Endless loop in ISO parser (bsc#985700).
- CVE-2015-8931: Undefined behavior / signed integer overflow in mtree parser (bsc#985689).
- CVE-2015-8932: Compress handler left shifting larger than int size (bsc#985665).
- CVE-2015-8933: Undefined behavior / signed integer overflow in TAR parser (bsc#985688).
- CVE-2015-8934: Out of bounds read in RAR (bsc#985673).
- CVE-2016-4300: Heap buffer overflow vulnerability in the 7zip read_SubStreamsInfo (bsc#985832).
- CVE-2016-4301: Stack buffer overflow in the mtree parse_device (bsc#985826).
- CVE-2016-4302: Heap buffer overflow in the Rar decompression functionality (bsc#985835).
- CVE-2016-4809: Memory allocate error with symbolic links in cpio archives (bsc#984990).
- Record
SUSE-SU-2016:1909-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libarchiveDebian:12 |
before 3.2.1-1 | 3.2.1-1 |
libarchiveDebian:13 |
before 3.2.1-1 | 3.2.1-1 |
libarchiveDebian:14 |
before 3.2.1-1 | 3.2.1-1 |
libarchiveMageia:5 From an advisory covering 4 CVEs |
before 3.2.1-1.mga5 | 3.2.1-1.mga5 |
libarchiveSUSE:Linux Enterprise Desktop 12 SP1 From an advisory covering 20 CVEs |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Software Development Kit 12 SP1 From an advisory covering 20 CVEs |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Server 12 SP1 From an advisory covering 20 CVEs |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Server for SAP Applications 12 SP1 From an advisory covering 20 CVEs |
before 3.1.2-22.1 | 3.1.2-22.1 |
bsdtaropenSUSE:Tumbleweed From an advisory covering 16 CVEs |
before 3.2.2-2.1 | 3.2.2-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-4301 is a high vulnerability (CVSS 7.8) in Libarchive, published July 5, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.72%, the 89th percentile. Fixed in libarchive 3.2.1-1.
References
securityfocus.com/bid/91328
github.com/libarchive/libarchive/issues/715
blog.talosintel.com/2016/06/the-poisoned-archives.html
github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77
talosintel.com/reports/TALOS-2016-0153
oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
Show 70 moreShow less
bugzilla.redhat.com/show_bug.cgi?id=1348441
security.gentoo.org/glsa/201701-03
nvd.nist.gov/vuln/detail/CVE-2016-4301
github.com/advisories/GHSA-r3m8-9hr7-7xwr
security-tracker.debian.org/tracker/CVE-2016-4301
advisories.mageia.org/MGASA-2016-0239.html
bugs.mageia.org/show_bug.cgi?id=18769
github.com/libarchive/libarchive/issues/521
talosintel.com/reports/TALOS-2016-0152
talosintel.com/reports/TALOS-2016-0154
bugzilla.redhat.com/show_bug.cgi?id=1349229
bugzilla.redhat.com/show_bug.cgi?id=1348439
bugzilla.redhat.com/show_bug.cgi?id=1348444
openwall.com/lists/oss-security/2016/06/23/6
groups.google.com/forum
openwall.com/lists/oss-security/2016/06/24/4
suse.com/support/update/announcement/2016/suse-su-20161909-1
bugzilla.suse.com/984990
bugzilla.suse.com/985609
bugzilla.suse.com/985665
bugzilla.suse.com/985669
bugzilla.suse.com/985673
bugzilla.suse.com/985675
bugzilla.suse.com/985679
bugzilla.suse.com/985682
bugzilla.suse.com/985685
bugzilla.suse.com/985688
bugzilla.suse.com/985689
bugzilla.suse.com/985697
bugzilla.suse.com/985698
bugzilla.suse.com/985700
bugzilla.suse.com/985703
bugzilla.suse.com/985704
bugzilla.suse.com/985706
bugzilla.suse.com/985826
bugzilla.suse.com/985832
bugzilla.suse.com/985835
suse.com/security/cve/CVE-2015-8918
suse.com/security/cve/CVE-2015-8919
suse.com/security/cve/CVE-2015-8920
suse.com/security/cve/CVE-2015-8921
suse.com/security/cve/CVE-2015-8922
suse.com/security/cve/CVE-2015-8923
suse.com/security/cve/CVE-2015-8924
suse.com/security/cve/CVE-2015-8925
suse.com/security/cve/CVE-2015-8926
suse.com/security/cve/CVE-2015-8928
suse.com/security/cve/CVE-2015-8929
suse.com/security/cve/CVE-2015-8930
suse.com/security/cve/CVE-2015-8931
suse.com/security/cve/CVE-2015-8932
suse.com/security/cve/CVE-2015-8933
suse.com/security/cve/CVE-2015-8934
suse.com/security/cve/CVE-2016-4300
suse.com/security/cve/CVE-2016-4301
suse.com/security/cve/CVE-2016-4302
suse.com/security/cve/CVE-2016-4809
ubuntu.com/security/CVE-2016-4301
github.com/libarchive/libarchive/pull/715
cve.org/CVERecord?id=CVE-2016-4301
suse.com/security/cve/CVE-2013-0211
suse.com/security/cve/CVE-2015-2304
suse.com/security/cve/CVE-2015-8917
suse.com/security/cve/CVE-2016-1541
suse.com/security/cve/CVE-2016-5418
suse.com/security/cve/CVE-2016-5844
suse.com/security/cve/CVE-2016-6250
suse.com/security/cve/CVE-2016-8687
suse.com/security/cve/CVE-2016-8688
suse.com/security/cve/CVE-2016-8689