CVE-2018-1000878
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.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | libarchive | Fixed | 3.2.2-3.1ubuntu0.2 | UBUNTU-CVE-2018-1000878 |
| Ubuntu 16.04 | libarchive | Fixed | 3.1.2-11ubuntu0.16.04.5 | UBUNTU-CVE-2018-1000878 |
| Ubuntu 14.04 | libarchive | Fixed | 3.1.2-7ubuntu2.7 | UBUNTU-CVE-2018-1000878 |
| Debian 14 | libarchive | Fixed | 3.3.3-2 | DEBIAN-CVE-2018-1000878 |
| Debian 13 | libarchive | Fixed | 3.3.3-2 | DEBIAN-CVE-2018-1000878 |
| Debian 12 | libarchive | Fixed | 3.3.3-2 | DEBIAN-CVE-2018-1000878 |
| Red Hat Enterprise Linux 8 | bsdtar | Fixed | 0:3.3.2-7.el8 | RHSA-2019:3698 |
| Red Hat Enterprise Linux 8 | libarchive | Fixed | 0:3.3.2-7.el8 | RHSA-2019:3698 |
| Red Hat Enterprise Linux 8 | libarchive-devel | Fixed | 0:3.3.2-7.el8 | RHSA-2019:3698 |
| Red Hat Enterprise Linux 7 | bsdcpio | Fixed | 0:3.1.2-12.el7 | RHSA-2019:2298 |
| Red Hat Enterprise Linux 7 | bsdtar | Fixed | 0:3.1.2-12.el7 | RHSA-2019:2298 |
| Red Hat Enterprise Linux 7 | libarchive | Fixed | 0:3.1.2-12.el7 | RHSA-2019:2298 |
| Red Hat Enterprise Linux 7 | libarchive-devel | Fixed | 0:3.1.2-12.el7 | RHSA-2019:2298 |
| Red Hat Enterprise Linux 6 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 6 | libarchive-devel | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/3859-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4360 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00055.html (vendor-advisory)
References
- https://usn.ubuntu.com/3859-1/
- https://lists.debian.org/debian-lts-announce/2018/12/msg00011.html
- https://bugs.launchpad.net/ubuntu/+source/libarchive/+bug/1794909
- https://www.debian.org/security/2018/dsa-4360
- https://github.com/libarchive/libarchive/pull/1105
- http://www.securityfocus.com/bid/106324
- https://github.com/libarchive/libarchive/pull/1105/commits/bfcfe6f04ed20db2504db8a254d1f40a1d84eb28
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVXA7PHINVT6DFF6PRLTDTVTXKDLVHNF/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W645KCLWFDBDGFJHG57WOVXGE62QSIJI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBOCC2M6YGPZA6US43YK4INPSJZZHRTG/
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00055.html
- https://access.redhat.com/errata/RHSA-2019:2298
- https://access.redhat.com/errata/RHSA-2019:3698
- http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00012.html
- http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00015.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.