CVE Vulnerabilities

CVE-2018-1000878

Use After Free

Published: Dec 20, 2018 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7 MODERATE
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-416: Use After Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c that can result in Crash/DoS - it is unknown if RCE is possible. This attack appear to be exploitable via the victim must open a specially crafted RAR archive.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
LibarchiveLibarchive3.1.0 (including)3.4.0 (excluding)
Red Hat Enterprise Linux 7RedHatlibarchive-0:3.1.2-12.el7*
Red Hat Enterprise Linux 8RedHatlibarchive-0:3.3.2-7.el8*
LibarchiveUbuntubionic*
LibarchiveUbuntucosmic*
LibarchiveUbuntudevel*
LibarchiveUbuntuesm-infra-legacy/trusty*
LibarchiveUbuntuesm-infra/bionic*
LibarchiveUbuntuesm-infra/xenial*
LibarchiveUbuntutrusty*
LibarchiveUbuntutrusty/esm*
LibarchiveUbuntuxenial*

Potential Mitigations

References