{"id":"UBUNTU-CVE-2018-1000877","details":"libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-415: Double Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c, parse_codes(), realloc(rar-\u003elzss.window, new_size) with new_size = 0 that can result in Crash/DoS. This attack appear to be exploitable via the victim must open a specially crafted RAR archive.","modified":"2026-04-22T12:42:56.266658Z","published":"2018-12-20T00:00:00Z","related":["USN-3859-1"],"upstream":["CVE-2018-1000877"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-1000877"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/libarchive/+bug/1794909"},{"type":"REPORT","url":"https://github.com/libarchive/libarchive/pull/1105"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3859-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000877"}],"affected":[{"package":{"name":"libarchive","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libarchive@3.1.2-7ubuntu2.7?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-7ubuntu2.7"}]}],"versions":["3.1.2-5ubuntu1","3.1.2-7ubuntu1","3.1.2-7ubuntu2","3.1.2-7ubuntu2.1","3.1.2-7ubuntu2.2","3.1.2-7ubuntu2.3","3.1.2-7ubuntu2.4","3.1.2-7ubuntu2.6"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.2-7ubuntu2.7","binary_name":"bsdcpio"},{"binary_version":"3.1.2-7ubuntu2.7","binary_name":"bsdtar"},{"binary_version":"3.1.2-7ubuntu2.7","binary_name":"libarchive13"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000877.json"}},{"package":{"name":"libarchive","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libarchive@3.1.2-11ubuntu0.16.04.5?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-11ubuntu0.16.04.5"}]}],"versions":["3.1.2-11build1","3.1.2-11ubuntu0.16.04.1","3.1.2-11ubuntu0.16.04.2","3.1.2-11ubuntu0.16.04.3","3.1.2-11ubuntu0.16.04.4"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.2-11ubuntu0.16.04.5","binary_name":"bsdcpio"},{"binary_version":"3.1.2-11ubuntu0.16.04.5","binary_name":"bsdtar"},{"binary_version":"3.1.2-11ubuntu0.16.04.5","binary_name":"libarchive13"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000877.json"}},{"package":{"name":"libarchive","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libarchive@3.2.2-3.1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.2-3.1ubuntu0.2"}]}],"versions":["3.2.2-3.1","3.2.2-3.1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.2.2-3.1ubuntu0.2","binary_name":"bsdcpio"},{"binary_version":"3.2.2-3.1ubuntu0.2","binary_name":"bsdtar"},{"binary_version":"3.2.2-3.1ubuntu0.2","binary_name":"libarchive-tools"},{"binary_version":"3.2.2-3.1ubuntu0.2","binary_name":"libarchive13"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000877.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}