CVE-2016-4302 Memory corruption in n/a

High 7.8 Published Updated

Remote attackers can execute arbitrary code via a malicious RAR file due to a heap-based buffer overflow in libarchive.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2016-4302?

CVE-2016-4302 is a high-severity memory corruption vulnerability in Libarchive Libarchive, published on 21 Sep 2016. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2016-4302?

It affects 8 products.

Products include Libarchive Libarchive, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Hpc Node, Redhat Enterprise Linux Hpc Node Eus, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus and 2 more.

How do I fix CVE-2016-4302?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2016-4302 being exploited?

There is no known exploitation of CVE-2016-4302 in the wild and no public exploit code.

All Libarchive Libarchive vulnerabilities

Sources

Also known as ALPINE-CVE-2016-4302, DEBIAN-CVE-2016-4302, GHSA-xxc5-v9q5-vjpj, UBUNTU-CVE-2016-4302.

Is CVE-2016-4302 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free