Every CVE Search/ Get API key

CVE-2016-4301

Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c...

7.8 HighFix available

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

3.72%Down 2.6 points since Feb 4, 2022
90%50%10%1%

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 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
libarchive
Debian:12
before 3.2.1-1
3.2.1-1
libarchive
Debian:13
before 3.2.1-1
3.2.1-1
libarchive
Debian:14
before 3.2.1-1
3.2.1-1
libarchive
Mageia:5
From an advisory covering 4 CVEs
before 3.2.1-1.mga5
3.2.1-1.mga5
libarchive
SUSE:Linux Enterprise Desktop 12 SP1
From an advisory covering 20 CVEs
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP1
From an advisory covering 20 CVEs
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE:Linux Enterprise Server 12 SP1
From an advisory covering 20 CVEs
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE: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
bsdtar
openSUSE:Tumbleweed
From an advisory covering 16 CVEs
before 3.2.2-2.1
3.2.2-2.1

History

History
RecordedChangedSources
affected, facts
affected
aliasesEUVD
first indexedCVE 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

Show 70 moreShow less
MoveEnter Open