Cloudanix VulnDB

CVE-2026-16517

Low · 2.9

CVSS

2.9

EPSS

0.1%

Published

Jul 21, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A problem in a widely used file archiving library can cause crashes or corrupted encrypted ZIP files when handling extremely large files, which may interrupt backup and packaging tasks.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
High
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Signed integer overflow in libarchive's archive_write_zip_header when ZIP encryption is enabled and entry file size approaches INT64_MAX, causing addition of encryption overhead to overflow int64_t and trigger undefined behavior that may result in incorrect Zip64 extension handling or memory corruption.

Why it matters to the business

Organizations relying on libarchive for creating encrypted ZIP archives with very large files risk crashes, corrupted archives, or unexpected failures in backup, packaging, or distribution workflows, potentially disrupting operations until patched.

How an attack unfolds

An attacker supplies a file sized near INT64_MAX to an application using libarchive, enables ZIP encryption during archive creation, and triggers the vulnerable header-writing code path to induce the overflow and resulting undefined behavior.

How to fix it

Update libarchive to the first patched release that corrects the integer overflow in archive_write_set_format_zip.c; in the interim, avoid enabling ZIP encryption for files approaching INT64_MAX in size.

How to confirm the fix worked

Confirm the installed libarchive version is newer than the vulnerable release; test archive creation with encryption on files sized near INT64_MAX and verify no overflow, crash, or corruption occurs.

Typical attack path

  1. Identify an application or script that uses libarchive to create ZIP archives with encryption enabled
  2. Prepare a file whose size is close to INT64_MAX
  3. Invoke archive creation with encryption option set
  4. Trigger archive_write_zip_header to cause the signed overflow
  5. Observe resulting undefined behavior such as memory corruption or incorrect Zip64 decisions

How to detect it

Review process logs and crash dumps from applications using libarchive during ZIP archive creation with encryption; search for segmentation faults or memory errors when handling files near the 64-bit size limit.

What your security team should do

  • Track libarchive release announcements for the security fix and schedule updates
  • Audit internal tools and dependencies that invoke libarchive ZIP encryption
  • Temporarily restrict use of ZIP encryption for extremely large files until patches are deployed

The record

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.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities