CVE-2016-4302: Buffer Overflow
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libarchiveto a version that resolves this vulnerability.Fixed in 3.2.1 - Upgrade
Upgrade
debian/libarchiveto a version that resolves this vulnerability.Fixed in 3.0.4-3+wheezy2Fixed in 3.1.2-11+deb8u2Fixed in 3.2.1-1 - Upgrade
Upgrade
libarchiveto a version that resolves this vulnerability.Fixed in 3.2.1
Event History
Frequently Asked Questions
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.
How do I fix CVE-2016-4302?
To fix CVE-2016-4302, update libarchive to version 3.2.1 or later.
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.
What type of vulnerability is CVE-2016-4302?
CVE-2016-4302 is a heap-based buffer overflow vulnerability.
What attack vector does CVE-2016-4302 use?
CVE-2016-4302 can be exploited by remote attackers through specially crafted RAR files.