CVE-2016-4302: Buffer Overflow

Published Jun 21, 2016
·
Updated

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.

External references:

http://www.talosintel.com/reports/TALOS-2016-0154/

Upstream fix:

https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700

Other sources

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

— MITRE

Affected Software

10 affected componentsFixes available
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Hpc Node=7.0
redhat Enterprise Linux Hpc Node Eus=7.2
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.2
redhat Enterprise Linux Server Eus=7.2
redhat Enterprise Linux Workstation=7.0
Libarchive libarchive<=3.2.0
redhat/libarchive<3.2.1
3.2.1
debian/libarchive
3.0.4-3+wheezy23.1.2-11+deb8u23.2.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libarchive to a version that resolves this vulnerability.

    Fixed in 3.2.1
  2. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.0.4-3+wheezy2Fixed in 3.1.2-11+deb8u2Fixed in 3.2.1-1
  3. Upgrade

    Upgrade libarchive to a version that resolves this vulnerability.

    Fixed in 3.2.1

Event History

Jun 21, 2016
Data Sourced
via Red Hat·07:59 AM
DescriptionSeverityAffected Software
Sep 21, 2016
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:25 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-4302?

CVE-2016-4302 is rated as a high severity vulnerability due to the potential for remote code execution.

2

How do I fix CVE-2016-4302?

To fix CVE-2016-4302, update libarchive to version 3.2.1 or later.

3

Which software is affected by CVE-2016-4302?

CVE-2016-4302 affects multiple versions of Red Hat Enterprise Linux and libarchive versions up to 3.2.0.

4

What type of vulnerability is CVE-2016-4302?

CVE-2016-4302 is a heap-based buffer overflow vulnerability.

5

What attack vector does CVE-2016-4302 use?

CVE-2016-4302 can be exploited by remote attackers through specially crafted RAR files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203