Name
libarchive
Version
3.7.9
Type
library
Description
Support for reading various archive formats
Licenses
BSD-2-Clause
PURL
-
CPE
cpe:2.3:*:libarchive:libarchive:3.7.9:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
Add regression test for zisofs 32-bit heap overflow
elhananhaenel <elhanan.haenel@mail.huji.ac.il>
CVE-2026-5121
2
rar: Fix heap-buffer-overflow (#2599)
Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
CVE-2025-5915
3
Fix -Wsign-compare: cast mask+1 to unsigned int
elhananhaenel <elhanan.haenel@mail.huji.ac.il>
CVE-2026-4424
4
Patch #4
Richard Purdie <richard.purdie@linuxfoundation.org>
5
Merge pull request #2749 from KlaraSystems/des/tempdir
Tim Kientzle <kientzle@acm.org>
6
warc: Prevent signed integer overflow (#2568)
Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
CVE-2025-5916
7
Merge pull request #2768 from Commandoss/master
Tim Kientzle <kientzle@acm.org>
8
Merge pull request #2696 from al3xtjames/mkstemp
Tim Kientzle <kientzle@acm.org>
9
Fix FILE_skip regression
Tobias Stoeckmann <tobias@stoeckmann.org>
CVE-2025-5918
10
rar: fix LZSS window size mismatch after PPMd block
elhananhaenel <elhanan.haenel@mail.huji.ac.il>
CVE-2026-4424
11
Reject filters when the block length is nonsensical
Tim Kientzle <kientzle@acm.org>
CVE-2026-4111
12
tar: fix off-bounds read resulting from #2787 (3150539ed)
Martin Matuska <martin@matuska.de>
CVE-2025-60753
13
rar: Fix double free with over 4 billion nodes (#2598)
Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
CVE-2025-5914
14
Fix bsdtar zero-length pattern issue.
=?UTF-8?q?ARJANEN=20Lo=C3=AFc=20Jean=20David?= <ljd@luigiscorner.mu>
CVE-2025-60753
15
Do not skip past EOF while reading (#2584)
Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
CVE-2025-5918
16
Merge pull request #2753 from KlaraSystems/des/temp-files
Tim Kientzle <kientzle@acm.org>
17
Merge pull request #2905 from Patsakas/Patsakas-fix-acl-bug
Tim Kientzle <kientzle@acm.org>
CVE-2026-5745
18
Fix overflow in build_ustar_entry (#2588)
Brian Campbell <Brian.Campbell@ed.ac.uk>
CVE-2025-5917
19
Improve lseek handling (#2564)
Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
CVE-2025-5918
20
iso9660: validate pz_log2_bs in parse_rockridge_ZF1()
elhananhaenel <elhanan.haenel@mail.huji.ac.il>
CVE-2026-4426
CVE-2026-5121
21
Infinite loop in Rar5 decompression
Tim Kientzle <kientzle@acm.org>
CVE-2026-4111
Vulnerabilities#
Name
Analysis
Description
Patched
A flaw was found in libarchive. A NULL pointer dereference vulnerability exists in the ACL parsing logic, specifically within the archive_acl_from_text_nl() function. When processing a malformed ACL string (such as a bare "d" or "default" tag without subsequent fields), the function fails to perform adequate validation before advancing the pointer. An attacker can exploit this by providing a maliciously crafted archive, causing an application utilizing the libarchive API (such as bsdtar) to crash, resulting in a Denial of Service (DoS).
Patched
A flaw was found in libarchive. On 32-bit systems, an integer overflow vulnerability exists in the zisofs block pointer allocation logic. A remote attacker can exploit this by providing a specially crafted ISO9660 image, which can lead to a heap buffer overflow. This could potentially allow for arbitrary code execution on the affected system.
Patched
A flaw was found in libarchive. An Undefined Behavior vulnerability exists in the zisofs decompression logic, caused by improper validation of a field (`pz_log2_bs`) read from ISO9660 Rock Ridge extensions. A remote attacker can exploit this by supplying a specially crafted ISO file. This can lead to incorrect memory allocation and potential application crashes, resulting in a denial-of-service (DoS) condition.
Patched
A flaw was found in libarchive. This heap out-of-bounds read vulnerability exists in the RAR archive processing logic due to improper validation of the LZSS sliding window size after transitions between compression methods. A remote attacker can exploit this by providing a specially crafted RAR archive, leading to the disclosure of sensitive heap memory information without requiring authentication or user interaction.
Patched
A flaw was identified in the RAR5 archive decompression logic of the libarchive library, specifically within the archive_read_data() processing path. When a specially crafted RAR5 archive is processed, the decompression routine may enter a state where internal logic prevents forward progress. This condition results in an infinite loop that continuously consumes CPU resources. Because the archive passes checksum validation and appears structurally valid, affected applications cannot detect the issue before processing. This can allow attackers to cause persistent denial-of-service conditions in services that automatically process archives.
Not Affected
A double free issue has been identified in libarchive's RAR5 reader. During parsing of a specially crafted RAR5 archive, the filtered_buf pointer may remain stale after being freed during unpacking state reinitialization. Subsequent processing of another archive entry can trigger a second free of the same memory region, resulting in a double-free condition. Successful exploitation may cause applications using the vulnerable libarchive API to terminate unexpectedly, leading to a denial of service.
Patched
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution in file tar/subst.c when processing crafted -s substitution rules. This can cause unbounded memory allocation and lead to denial of service (Out-of-Memory crash).
Patched
A vulnerability has been identified in the libarchive library. This flaw can be triggered when file streams are piped into bsdtar, potentially allowing for reading past the end of the file. This out-of-bounds read can lead to unintended consequences, including unpredictable program behavior, memory corruption, or a denial-of-service condition.
Patched
A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation. This bug affects libarchive versions prior to 3.8.0.
Patched
A vulnerability has been identified in the libarchive library. This flaw involves an integer overflow that can be triggered when processing a Web Archive (WARC) file that claims to have more than INT64_MAX - 4 content bytes. An attacker could craft a malicious WARC archive to induce this overflow, potentially leading to unpredictable program behavior, memory corruption, or a denial-of-service condition within applications that process such archives using libarchive. This bug affects libarchive versions prior to 3.8.0.
Patched
A vulnerability has been identified in the libarchive library. This flaw can lead to a heap buffer over-read due to the size of a filter block potentially exceeding the Lempel-Ziv-Storer-Schieber (LZSS) window. This means the library may attempt to read beyond the allocated memory buffer, which can result in unpredictable program behavior, crashes (denial of service), or the disclosure of sensitive information from adjacent memory regions.
Patched
A vulnerability has been identified in the libarchive library, specifically within the archive_read_format_rar_seek_data() function. This flaw involves an integer overflow that can ultimately lead to a double-free condition. Exploiting a double-free vulnerability can result in memory corruption, enabling an attacker to execute arbitrary code or cause a denial-of-service condition.