p PatchFirst

PatchFirst · Latest vulnerabilities

libarchive vulnerabilities

Vulnerability published for libarchive in the last 30 days: 1. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 19

  1. CVE-2026-17591

    Low · CVSS 3.6EPSS 0.15%No fix published

    Libarchive: libarchive: use-after-free via aliased mac metadata copy

    A flaw was found in libarchive. An attacker can cause a Denial of Service (DoS) or potential information disclosure due to a use-after-free vulnerability, which occurs when a program reads memory that has already been released. This issue arises when the archive_entry_copy_mac_metadata() function deallocates an internal buffer before completing a data copy. An attacker who can supply input to an application utilizing this function can trigger the flaw to crash the application or read uninitialized memory data.

    Published Updated
  2. CVE-2026-16517

    Low · CVSS 2.9EPSS 0.1%No fix published

    Libarchive: libarchive: signed integer overflow in archive_write_zip_header

    A signed integer overflow vulnerability was found in libarchive's ZIP writer. In the archive_write_zip_header function in archive_write_set_format_zip.c, when ZIP encryption is enabled and the entry file size is close to INT64_MAX, the addition of the encryption overhead to the entry size overflows int64_t, resulting in undefined behavior. This could lead to incorrect Zip64 extension decisions or potential memory corruption.

    Published Updated
  3. CVE-2026-5121

    High · CVSS 7.5EPSS 1.09%Fix available

    Libarchive: libarchive: arbitrary code execution via integer overflow in iso9660 image processing

    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.

    • Update to 3.1.2-7ubuntu2.8+esm5
    Published Updated
  4. CVE-2026-4426

    Medium · CVSS 6.5EPSS 0.31%Fix available

    Libarchive: libarchive: denial of service via malformed iso file processing

    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.

    • Update to 3.1.2-7ubuntu2.8+esm5
    Published Updated
  5. CVE-2026-4424

    High · CVSS 7.5EPSS 1.26%Fix available

    Libarchive: libarchive: information disclosure via heap out-of-bounds read in rar archive processing

    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.

    • Update to 3.1.2-7ubuntu2.8+esm5
    Published Updated
  6. CVE-2026-4111

    High · CVSS 7.5EPSS 0.7%Fix available

    Libarchive: infinite loop denial of service in rar5 decompression via archive_read_data() in libarchive

    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.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  7. CVE-2025-5914

    High · CVSS 7.8EPSS 0.47%Fix available

    Libarchive: double free at archive_read_format_rar_seek_data() in archive_read_support_format_rar.c

    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.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  8. CVE-2025-5918

    Low · CVSS 3.9EPSS 0.38%Fix available

    Libarchive: reading past eof may be triggered for piped file streams

    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.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  9. CVE-2025-5917

    Low · CVSS 2.8EPSS 0.23%Fix available

    Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c

    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.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  10. CVE-2025-5916

    Low · CVSS 3.9EPSS 0.21%Fix available

    Libarchive: integer overflow while reading warc files at archive_read_support_format_warc.c

    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.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  11. CVE-2025-25724

    Medium · CVSS 4EPSS 0.37%Fix available

    CVE-2025-25724

    list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service or unspecified other impact via a crafted TAR archive that is read with a verbose value of 2. For example, the 100-byte buffer may not be sufficient for a custom locale.

    • Update to 3.1.2-7ubuntu2.8+esm4
    Published Updated
  12. CVE-2023-30571

    Low · CVSS 3.9EPSS 0.19%No fix published

    CVE-2023-30571

    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.

    Published Updated
  13. CVE-2022-36227

    Critical · CVSS 9.8EPSS 2.46%Fix available

    CVE-2022-36227

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

    • Update to 3.1.2-7ubuntu2.8+esm3
    Published Updated
  14. CVE-2021-31566

    High · CVSS 7.8EPSS 0.39%No fix published

    CVE-2021-31566

    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.

    Published Updated
  15. CVE-2021-23177

    High · CVSS 7.8EPSS 0.39%No fix published

    CVE-2021-23177

    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.

    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →