Every CVE Search/ Get API key

CVE-2016-4302

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in...

7.8 HighFix available

CVE-2016-4302 is a high vulnerability (CVSS 7.8) in Libarchive, published June 23, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.76%, the 91st percentile. Fixed in libarchive 3.2.1-r0.

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

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

4.76%Down 3.1 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
CVE-2016-4302
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

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
CVE-2016-4302
Updated
2026-11-02
EUVDEUVD-2016-5302 No score

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
EUVD-2016-5302
Updated
2026-11-03
GitHub AdvisoriesGHSA-xxc5-v9q5-vjpj 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in...

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
GHSA-xxc5-v9q5-vjpj
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
OSVALPINE-CVE-2016-4302 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
ALPINE-CVE-2016-4302
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
OSV 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
CVE-2016-4302
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 6 moreShow less
OSVDEBIAN-CVE-2016-4302 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
DEBIAN-CVE-2016-4302
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
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
OSVUBUNTU-CVE-2016-4302 7.8

Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Record
UBUNTU-CVE-2016-4302
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
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
OSVUSN-3033-1 No score

libarchive vulnerabilities

Hanno Böck discovered that libarchive contained multiple security issues when processing certain malformed archive files. A remote attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-8916, CVE-2015-8917 CVE-2015-8919, CVE-2015-8920, CVE-2015-8921, CVE-2015-8922, CVE-2015-8923, CVE-2015-8924, CVE-2015-8925, CVE-2015-8926, CVE-2015-8928, CVE-2015-8930, CVE-2015-8931, CVE-2015-8932, CVE-2015-8933, CVE-2015-8934, CVE-2016-5844)

Marcin "Icewall" Noga discovered that libarchive contained multiple security issues when processing certain malformed archive files. A remote attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-4300, CVE-2016-4302)

It was discovered that libarchive incorrectly handled memory allocation with large cpio symlinks. A remote attacker could use this issue to possibly cause libarchive to crash, resulting in a denial of service. (CVE-2016-4809)

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libarchive
Alpine:v3.4
before 3.2.1-r0
3.2.1-r0
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
Debian:7
before 3.0.4-3+wheezy2, plus listed versions
3.0.4-3+nmu13.0.4-3+wheezy1
3.0.4-3+wheezy2
libarchive
Debian:8
before 3.1.2-11+deb8u2, plus listed versions
3.1.2-113.1.2-11+deb8u1
3.1.2-11+deb8u2
libarchive
Mageia:5
before 3.2.1-1.mga5
3.2.1-1.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
Show 23 moreShow less
Affected packages
PackageAffectedFixed
bsdtar
Red Hat:enterprise_linux:7::client
before 0:3.1.2-10.el7_2
0:3.1.2-10.el7_2
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
SUSE:Linux Enterprise Desktop 12 SP1
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE:Linux Enterprise Server 12 SP1
before 3.1.2-22.1
3.1.2-22.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 3.1.2-22.1
3.1.2-22.1
libarchive
Ubuntu:14.04:LTS
before 3.1.2-7ubuntu2.3, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.2
3.1.2-7ubuntu2.3
libarchive
Ubuntu:16.04:LTS
before 3.1.2-11ubuntu0.16.04.2, plus listed versions
3.1.2-11build13.1.2-11ubuntu0.16.04.1
3.1.2-11ubuntu0.16.04.2

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 176 moreShow less
MoveEnter Open