Libarchive · Libarchive · CVE-2018-1000877
**Name of the Vulnerable Software and Affected Versions**
libarchive versions 3.1.0 and later
**Description**
The issue is related to a double free error in the RAR decoder of the libarchive library, specifically in the `parse codes()` function within `libarchive/archive read support format rar.c`. This error occurs when `realloc(rar->lzss.window, new size)` is called with `new size = 0`, potentially leading to a crash or denial of service (DoS). The attack can be exploited if a victim opens a specially crafted RAR archive, allowing a remote attacker to cause a service disruption.
**Recommendations**
For libarchive versions 3.1.0 and later, consider disabling the RAR decoder functionality until a patch is available to prevent potential exploitation. Restrict access to specially crafted RAR archives to minimize the risk of a denial of service. At the moment, there is no information about a newer version that contains a fix for this vulnerability.