CVE-2016-4302
Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in...
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
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 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
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 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
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 High
CVSS: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 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 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 High
CVSS: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 High
CVSS: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 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
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
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.4 |
before 3.2.1-r0 | 3.2.1-r0 |
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 |
libarchiveDebian:7 |
before 3.0.4-3+wheezy2, plus listed versions 3.0.4-3+nmu13.0.4-3+wheezy1 |
3.0.4-3+wheezy2 |
libarchiveDebian:8 |
before 3.1.2-11+deb8u2, plus listed versions 3.1.2-113.1.2-11+deb8u1 |
3.1.2-11+deb8u2 |
libarchiveMageia:5 |
before 3.2.1-1.mga5 | 3.2.1-1.mga5 |
libarchiveRed Hat:enterprise_linux:7::client |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-debuginfoRed Hat:enterprise_linux:7::client |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdcpioRed Hat:enterprise_linux:7::client |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
bsdtarRed Hat:enterprise_linux:7::client |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-develRed Hat:enterprise_linux:7::client |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchiveRed Hat:enterprise_linux:7::computenode |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdcpioRed Hat:enterprise_linux:7::computenode |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdtarRed Hat:enterprise_linux:7::computenode |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-develRed Hat:enterprise_linux:7::computenode |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchiveRed Hat:enterprise_linux:7::server |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-debuginfoRed Hat:enterprise_linux:7::server |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdcpioRed Hat:enterprise_linux:7::server |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdtarRed Hat:enterprise_linux:7::server |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-develRed Hat:enterprise_linux:7::server |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchiveRed Hat:enterprise_linux:7::workstation |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdcpioRed Hat:enterprise_linux:7::workstation |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
bsdtarRed Hat:enterprise_linux:7::workstation |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchive-develRed Hat:enterprise_linux:7::workstation |
before 0:3.1.2-10.el7_2 | 0:3.1.2-10.el7_2 |
libarchiveSUSE:Linux Enterprise Desktop 12 SP1 |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Server 12 SP1 |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 3.1.2-22.1 | 3.1.2-22.1 |
libarchiveUbuntu: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 |
libarchiveUbuntu: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
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
rhn.redhat.com/errata/RHSA-2016-1844.html
oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
blog.talosintel.com/2016/06/the-poisoned-archives.html
talosintel.com/reports/TALOS-2016-0154
github.com/libarchive/libarchive/issues/719
oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
Show 176 moreShow less
securityfocus.com/bid/91331
bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1348444
security.gentoo.org/glsa/201701-03
debian.org/security/2016/dsa-3657
github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700
nvd.nist.gov/vuln/detail/CVE-2016-4302
github.com/advisories/GHSA-xxc5-v9q5-vjpj
security.alpinelinux.org/vuln/CVE-2016-4302
security-tracker.debian.org/tracker/CVE-2016-4302
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-0153
bugzilla.redhat.com/show_bug.cgi?id=1349229
bugzilla.redhat.com/show_bug.cgi?id=1348439
bugzilla.redhat.com/show_bug.cgi?id=1348441
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
access.redhat.com/errata/RHSA-2016:1844
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1334211
bugzilla.redhat.com/show_bug.cgi?id=1347084
bugzilla.redhat.com/show_bug.cgi?id=1347085
bugzilla.redhat.com/show_bug.cgi?id=1347086
bugzilla.redhat.com/show_bug.cgi?id=1348412
bugzilla.redhat.com/show_bug.cgi?id=1348413
bugzilla.redhat.com/show_bug.cgi?id=1348414
bugzilla.redhat.com/show_bug.cgi?id=1348416
bugzilla.redhat.com/show_bug.cgi?id=1348419
bugzilla.redhat.com/show_bug.cgi?id=1348421
bugzilla.redhat.com/show_bug.cgi?id=1348423
bugzilla.redhat.com/show_bug.cgi?id=1348424
bugzilla.redhat.com/show_bug.cgi?id=1348429
bugzilla.redhat.com/show_bug.cgi?id=1348772
bugzilla.redhat.com/show_bug.cgi?id=1348773
bugzilla.redhat.com/show_bug.cgi?id=1348779
bugzilla.redhat.com/show_bug.cgi?id=1348780
bugzilla.redhat.com/show_bug.cgi?id=1349204
bugzilla.redhat.com/show_bug.cgi?id=1350280
bugzilla.redhat.com/show_bug.cgi?id=1362601
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_1844.json
access.redhat.com/security/cve/CVE-2015-8916
cve.org/CVERecord?id=CVE-2015-8916
nvd.nist.gov/vuln/detail/CVE-2015-8916
access.redhat.com/security/cve/CVE-2015-8917
cve.org/CVERecord?id=CVE-2015-8917
nvd.nist.gov/vuln/detail/CVE-2015-8917
access.redhat.com/security/cve/CVE-2015-8919
cve.org/CVERecord?id=CVE-2015-8919
nvd.nist.gov/vuln/detail/CVE-2015-8919
access.redhat.com/security/cve/CVE-2015-8920
cve.org/CVERecord?id=CVE-2015-8920
nvd.nist.gov/vuln/detail/CVE-2015-8920
access.redhat.com/security/cve/CVE-2015-8921
cve.org/CVERecord?id=CVE-2015-8921
nvd.nist.gov/vuln/detail/CVE-2015-8921
access.redhat.com/security/cve/CVE-2015-8922
cve.org/CVERecord?id=CVE-2015-8922
nvd.nist.gov/vuln/detail/CVE-2015-8922
access.redhat.com/security/cve/CVE-2015-8923
cve.org/CVERecord?id=CVE-2015-8923
nvd.nist.gov/vuln/detail/CVE-2015-8923
access.redhat.com/security/cve/CVE-2015-8924
cve.org/CVERecord?id=CVE-2015-8924
nvd.nist.gov/vuln/detail/CVE-2015-8924
access.redhat.com/security/cve/CVE-2015-8925
cve.org/CVERecord?id=CVE-2015-8925
nvd.nist.gov/vuln/detail/CVE-2015-8925
access.redhat.com/security/cve/CVE-2015-8926
cve.org/CVERecord?id=CVE-2015-8926
nvd.nist.gov/vuln/detail/CVE-2015-8926
access.redhat.com/security/cve/CVE-2015-8928
cve.org/CVERecord?id=CVE-2015-8928
nvd.nist.gov/vuln/detail/CVE-2015-8928
access.redhat.com/security/cve/CVE-2015-8930
cve.org/CVERecord?id=CVE-2015-8930
nvd.nist.gov/vuln/detail/CVE-2015-8930
access.redhat.com/security/cve/CVE-2015-8931
cve.org/CVERecord?id=CVE-2015-8931
nvd.nist.gov/vuln/detail/CVE-2015-8931
access.redhat.com/security/cve/CVE-2015-8932
cve.org/CVERecord?id=CVE-2015-8932
nvd.nist.gov/vuln/detail/CVE-2015-8932
access.redhat.com/security/cve/CVE-2015-8934
cve.org/CVERecord?id=CVE-2015-8934
nvd.nist.gov/vuln/detail/CVE-2015-8934
access.redhat.com/security/cve/CVE-2016-1541
cve.org/CVERecord?id=CVE-2016-1541
nvd.nist.gov/vuln/detail/CVE-2016-1541
kb.cert.org/vuls/id/862384
access.redhat.com/security/cve/CVE-2016-4300
cve.org/CVERecord?id=CVE-2016-4300
nvd.nist.gov/vuln/detail/CVE-2016-4300
access.redhat.com/security/cve/CVE-2016-4302
cve.org/CVERecord?id=CVE-2016-4302
access.redhat.com/security/cve/CVE-2016-4809
cve.org/CVERecord?id=CVE-2016-4809
nvd.nist.gov/vuln/detail/CVE-2016-4809
access.redhat.com/security/cve/CVE-2016-5418
cve.org/CVERecord?id=CVE-2016-5418
nvd.nist.gov/vuln/detail/CVE-2016-5418
seclists.org/oss-sec/2016/q3/255
access.redhat.com/security/cve/CVE-2016-5844
cve.org/CVERecord?id=CVE-2016-5844
nvd.nist.gov/vuln/detail/CVE-2016-5844
access.redhat.com/security/cve/CVE-2016-6250
cve.org/CVERecord?id=CVE-2016-6250
nvd.nist.gov/vuln/detail/CVE-2016-6250
access.redhat.com/security/cve/CVE-2016-7166
cve.org/CVERecord?id=CVE-2016-7166
nvd.nist.gov/vuln/detail/CVE-2016-7166
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-4302
ubuntu.com/security/notices/USN-3033-1
ubuntu.com/security/CVE-2015-8916
ubuntu.com/security/CVE-2015-8917
ubuntu.com/security/CVE-2015-8919
ubuntu.com/security/CVE-2015-8920
ubuntu.com/security/CVE-2015-8921
ubuntu.com/security/CVE-2015-8922
ubuntu.com/security/CVE-2015-8923
ubuntu.com/security/CVE-2015-8924
ubuntu.com/security/CVE-2015-8925
ubuntu.com/security/CVE-2015-8926
ubuntu.com/security/CVE-2015-8928
ubuntu.com/security/CVE-2015-8930
ubuntu.com/security/CVE-2015-8931
ubuntu.com/security/CVE-2015-8932
ubuntu.com/security/CVE-2015-8933
ubuntu.com/security/CVE-2015-8934
ubuntu.com/security/CVE-2016-4300
ubuntu.com/security/CVE-2016-4809
ubuntu.com/security/CVE-2016-5844