libarchive CVE Vulnerabilities & Metrics

Focus on libarchive vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About libarchive Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with libarchive. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total libarchive CVEs: 62
Earliest CVE date: 30 Sep 2013, 22:55 UTC
Latest CVE date: 10 Oct 2024, 02:15 UTC

Latest CVE reference: CVE-2024-48958

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 4

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): 300.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): 300.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical libarchive CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.29

Max CVSS: 7.5

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 9
4.0-6.9 53
7.0-8.9 1
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS libarchive CVEs

These are the five CVEs with the highest CVSS scores for libarchive, sorted by severity first and recency.

All CVEs for libarchive

CVE-2024-48958 libarchive vulnerability CVSS: 0 10 Oct 2024, 02:15 UTC

execute_filter_delta in archive_read_support_format_rar.c in libarchive before 3.7.5 allows out-of-bounds access via a crafted archive file because src can move beyond dst.

CVE-2024-48957 libarchive vulnerability CVSS: 0 10 Oct 2024, 02:15 UTC

execute_filter_audio in archive_read_support_format_rar.c in libarchive before 3.7.5 allows out-of-bounds access via a crafted archive file because src can move beyond dst.

CVE-2024-37407 libarchive vulnerability CVSS: 0 08 Jun 2024, 13:15 UTC

Libarchive before 3.7.4 allows name out-of-bounds access when a ZIP archive has an empty-name file and mac-ext is enabled. This occurs in slurp_central_directory in archive_read_support_format_zip.c.

CVE-2024-26256 libarchive vulnerability CVSS: 0 09 Apr 2024, 17:15 UTC

Libarchive Remote Code Execution Vulnerability

CVE-2023-30571 libarchive vulnerability CVSS: 0 29 May 2023, 20:15 UTC

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time; a race condition with another thread can lead to a permanent umask 0 setting. Such a race condition could lead to implicit directory creation with permissions 0777 (without the sticky bit), which means that any low-privileged local user can delete and rename files inside those directories.

CVE-2022-36227 libarchive vulnerability CVSS: 0 22 Nov 2022, 02:15 UTC

In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference. NOTE: the discoverer cites this CWE-476 remark but third parties dispute the code-execution impact: "In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution."

CVE-2021-31566 libarchive vulnerability CVSS: 0 23 Aug 2022, 16:15 UTC

An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of a file outside of the archive. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to gain more privileges in a system.

CVE-2021-23177 libarchive vulnerability CVSS: 0 23 Aug 2022, 16:15 UTC

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to change the ACL of a file on the system and gain more privileges.

CVE-2022-26280 libarchive vulnerability CVSS: 5.8 28 Mar 2022, 22:15 UTC

Libarchive v3.6.0 was discovered to contain an out-of-bounds read via the component zipx_lzma_alone_init.

CVE-2021-36976 libarchive vulnerability CVSS: 4.3 20 Jul 2021, 07:15 UTC

libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).

CVE-2020-21674 libarchive vulnerability CVSS: 4.3 15 Oct 2020, 15:15 UTC

Heap-based buffer overflow in archive_string_append_from_wcs() (archive_string.c) in libarchive-3.4.1dev allows remote attackers to cause a denial of service (out-of-bounds write in heap memory resulting into a crash) via a crafted archive file. NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.

CVE-2020-9308 libarchive vulnerability CVSS: 6.8 20 Feb 2020, 07:15 UTC

archive_read_support_format_rar5.c in libarchive before 3.4.2 attempts to unpack a RAR5 file with an invalid or corrupted header (such as a header size of zero), leading to a SIGSEGV or possibly unspecified other impact.

CVE-2019-19221 libarchive vulnerability CVSS: 2.1 21 Nov 2019, 23:15 UTC

In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.

CVE-2019-18408 libarchive vulnerability CVSS: 5.0 24 Oct 2019, 14:15 UTC

archive_read_format_rar_read_data in archive_read_support_format_rar.c in libarchive before 3.4.0 has a use-after-free in a certain ARCHIVE_FAILED situation, related to Ppmd7_DecodeSymbol.

CVE-2019-11463 libarchive vulnerability CVSS: 4.3 23 Apr 2019, 03:29 UTC

A memory leak in archive_read_format_zip_cleanup in archive_read_support_format_zip.c in libarchive 3.3.4-dev allows remote attackers to cause a denial of service via a crafted ZIP file because of a HAVE_LZMA_H typo. NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.

CVE-2019-1000020 libarchive vulnerability CVSS: 4.3 04 Feb 2019, 21:29 UTC

libarchive version commit 5a98dcf8a86364b3c2c469c85b93647dfb139961 onwards (version v2.8.0 onwards) contains a CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in ISO9660 parser, archive_read_support_format_iso9660.c, read_CE()/parse_rockridge() that can result in DoS by infinite loop. This attack appears to be exploitable via the victim opening a specially crafted ISO9660 file.

CVE-2019-1000019 libarchive vulnerability CVSS: 4.3 04 Feb 2019, 21:29 UTC

libarchive version commit bf9aec176c6748f0ee7a678c5f9f9555b9a757c1 onwards (release v3.0.2 onwards) contains a CWE-125: Out-of-bounds Read vulnerability in 7zip decompression, archive_read_support_format_7zip.c, header_bytes() that can result in a crash (denial of service). This attack appears to be exploitable via the victim opening a specially crafted 7zip file.

CVE-2018-1000880 libarchive vulnerability CVSS: 4.3 20 Dec 2018, 17:29 UTC

libarchive version commit 9693801580c0cf7c70e862d305270a16b52826a7 onwards (release v3.2.0 onwards) contains a CWE-20: Improper Input Validation vulnerability in WARC parser - libarchive/archive_read_support_format_warc.c, _warc_read() that can result in DoS - quasi-infinite run time and disk usage from tiny file. This attack appear to be exploitable via the victim must open a specially crafted WARC file.

CVE-2018-1000879 libarchive vulnerability CVSS: 4.3 20 Dec 2018, 17:29 UTC

libarchive version commit 379867ecb330b3a952fb7bfa7bffb7bbd5547205 onwards (release v3.3.0 onwards) contains a CWE-476: NULL Pointer Dereference vulnerability in ACL parser - libarchive/archive_acl.c, archive_acl_from_text_l() that can result in Crash/DoS. This attack appear to be exploitable via the victim must open a specially crafted archive file.

CVE-2018-1000878 libarchive vulnerability CVSS: 6.8 20 Dec 2018, 17:29 UTC

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.

CVE-2018-1000877 libarchive vulnerability CVSS: 6.8 20 Dec 2018, 17:29 UTC

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->lzss.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.

CVE-2017-14503 libarchive vulnerability CVSS: 4.3 17 Sep 2017, 18:29 UTC

libarchive 3.3.2 suffers from an out-of-bounds read within lha_read_data_none() in archive_read_support_format_lha.c when extracting a specially crafted lha archive, related to lha_crc16.

CVE-2017-14502 libarchive vulnerability CVSS: 5.0 17 Sep 2017, 18:29 UTC

read_header in archive_read_support_format_rar.c in libarchive 3.3.2 suffers from an off-by-one error for UTF-16 names in RAR archives, leading to an out-of-bounds read in archive_read_format_rar_read_header.

CVE-2017-14501 libarchive vulnerability CVSS: 4.3 17 Sep 2017, 18:29 UTC

An out-of-bounds read flaw exists in parse_file_info in archive_read_support_format_iso9660.c in libarchive 3.3.2 when extracting a specially crafted iso9660 iso file, related to archive_read_format_iso9660_read_header.

CVE-2017-14166 libarchive vulnerability CVSS: 4.3 06 Sep 2017, 18:29 UTC

libarchive 3.3.2 allows remote attackers to cause a denial of service (xml_data heap-based buffer over-read and application crash) via a crafted xar archive, related to the mishandling of empty strings in the atol8 function in archive_read_support_format_xar.c.

CVE-2016-10350 libarchive vulnerability CVSS: 4.3 01 May 2017, 01:59 UTC

The archive_read_format_cab_read_header function in archive_read_support_format_cab.c in libarchive 3.2.2 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted file.

CVE-2016-10349 libarchive vulnerability CVSS: 4.3 01 May 2017, 01:59 UTC

The archive_le32dec function in archive_endian.h in libarchive 3.2.2 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted file.

CVE-2016-10209 libarchive vulnerability CVSS: 4.3 03 Apr 2017, 05:59 UTC

The archive_wstring_append_from_mbs function in archive_string.c in libarchive 3.2.2 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted archive file.

CVE-2016-8689 libarchive vulnerability CVSS: 5.0 15 Feb 2017, 19:59 UTC

The read_Header function in archive_read_support_format_7zip.c in libarchive 3.2.1 allows remote attackers to cause a denial of service (out-of-bounds read) via multiple EmptyStream attributes in a header in a 7zip archive.

CVE-2016-8688 libarchive vulnerability CVSS: 4.3 15 Feb 2017, 19:59 UTC

The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.

CVE-2016-8687 libarchive vulnerability CVSS: 5.0 15 Feb 2017, 19:59 UTC

Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.

CVE-2017-5601 libarchive vulnerability CVSS: 5.0 27 Jan 2017, 22:59 UTC

An error in the lha_read_file_header_1() function (archive_read_support_format_lha.c) in libarchive 3.2.2 allows remote attackers to trigger an out-of-bounds read memory access and subsequently cause a crash via a specially crafted archive.

CVE-2016-7166 libarchive vulnerability CVSS: 4.3 21 Sep 2016, 14:25 UTC

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

CVE-2016-6250 libarchive vulnerability CVSS: 7.5 21 Sep 2016, 14:25 UTC

Integer overflow in the ISO9660 writer in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow.

CVE-2016-5844 libarchive vulnerability CVSS: 4.3 21 Sep 2016, 14:25 UTC

Integer overflow in the ISO parser in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) via a crafted ISO file.

CVE-2016-5418 libarchive vulnerability CVSS: 5.0 21 Sep 2016, 14:25 UTC

The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file.

CVE-2016-4809 libarchive vulnerability CVSS: 5.0 21 Sep 2016, 14:25 UTC

The archive_read_format_cpio_read_header function in archive_read_support_format_cpio.c in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) via a CPIO archive with a large symlink.

CVE-2016-4302 libarchive vulnerability CVSS: 6.8 21 Sep 2016, 14:25 UTC

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.

CVE-2016-4301 libarchive vulnerability CVSS: 6.8 21 Sep 2016, 14:25 UTC

Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.

CVE-2016-4300 libarchive vulnerability CVSS: 6.8 21 Sep 2016, 14:25 UTC

Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a 7zip file with a large number of substreams, which triggers a heap-based buffer overflow.

CVE-2015-8934 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The copy_from_lzss_window function in archive_read_support_format_rar.c in libarchive 3.2.0 and earlier allows remote attackers to cause a denial of service (out-of-bounds heap read) via a crafted rar file.

CVE-2015-8933 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

Integer overflow in the archive_read_format_tar_skip function in archive_read_support_format_tar.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (crash) via a crafted tar file.

CVE-2015-8932 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The compress_bidder_init function in archive_read_support_filter_compress.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (crash) via a crafted tar file, which triggers an invalid left shift.

CVE-2015-8931 libarchive vulnerability CVSS: 6.8 20 Sep 2016, 14:15 UTC

Multiple integer overflows in the (1) get_time_t_max and (2) get_time_t_min functions in archive_read_support_format_mtree.c in libarchive before 3.2.0 allow remote attackers to have unspecified impact via a crafted mtree file, which triggers undefined behavior.

CVE-2015-8930 libarchive vulnerability CVSS: 5.0 20 Sep 2016, 14:15 UTC

bsdtar in libarchive before 3.2.0 allows remote attackers to cause a denial of service (infinite loop) via an ISO with a directory that is a member of itself.

CVE-2015-8929 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

Memory leak in the __archive_read_get_extract function in archive_read_extract2.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service via a tar file.

CVE-2015-8928 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The process_add_entry function in archive_read_support_format_mtree.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted mtree file.

CVE-2015-8927 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The trad_enc_decrypt_update function in archive_read_support_format_zip.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds heap read and crash) via a crafted zip file, related to reading the password.

CVE-2015-8926 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The archive_read_format_rar_read_data function in archive_read_support_format_rar.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (crash) via a crafted rar archive.

CVE-2015-8925 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The readline function in archive_read_support_format_mtree.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (invalid read) via a crafted mtree file, related to newline parsing.

CVE-2015-8924 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The archive_read_format_tar_read_header function in archive_read_support_format_tar.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tar file.

CVE-2015-8923 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The process_extra function in libarchive before 3.2.0 uses the size field and a signed number in an offset, which allows remote attackers to cause a denial of service (crash) via a crafted zip file.

CVE-2015-8922 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The read_CodersInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted 7z file, related to the _7z_folder struct.

CVE-2015-8921 libarchive vulnerability CVSS: 5.0 20 Sep 2016, 14:15 UTC

The ae_strtofflags function in archive_entry.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted mtree file.

CVE-2015-8920 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

The _ar_read_header function in archive_read_support_format_ar.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds stack read) via a crafted ar file.

CVE-2015-8919 libarchive vulnerability CVSS: 5.0 20 Sep 2016, 14:15 UTC

The lha_read_file_extended_header function in archive_read_support_format_lha.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (out-of-bounds heap) via a crafted (1) lzh or (2) lha file.

CVE-2015-8918 libarchive vulnerability CVSS: 5.0 20 Sep 2016, 14:15 UTC

The archive_string_append function in archive_string.c in libarchive before 3.2.0 allows remote attackers to cause a denial of service (crash) via a crafted cab files, related to "overlapping memcpy."

CVE-2015-8917 libarchive vulnerability CVSS: 5.0 20 Sep 2016, 14:15 UTC

bsdtar in libarchive before 3.2.0 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via an invalid character in the name of a cab file.

CVE-2015-8916 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

bsdtar in libarchive before 3.2.0 returns a success code without filling the entry when the header is a "split file in multivolume RAR," which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted rar file.

CVE-2015-8915 libarchive vulnerability CVSS: 4.3 20 Sep 2016, 14:15 UTC

bsdcpio in libarchive before 3.2.0 allows remote attackers to cause a denial of service (invalid read and crash) via crafted cpio file.

CVE-2016-1541 libarchive vulnerability CVSS: 6.8 07 May 2016, 10:59 UTC

Heap-based buffer overflow in the zip_read_mac_metadata function in archive_read_support_format_zip.c in libarchive before 3.2.0 allows remote attackers to execute arbitrary code via crafted entry-size values in a ZIP archive.

CVE-2015-2304 libarchive vulnerability CVSS: 6.4 15 Mar 2015, 19:59 UTC

Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote attackers to write to arbitrary files via a full pathname in an archive.

CVE-2013-0211 libarchive vulnerability CVSS: 5.0 30 Sep 2013, 22:55 UTC

Integer signedness error in the archive_write_zip_data function in archive_write_set_format_zip.c in libarchive 3.1.2 and earlier, when running on 64-bit machines, allows context-dependent attackers to cause a denial of service (crash) via unspecified vectors, which triggers an improper conversion between unsigned and signed types, leading to a buffer overflow.