CVE-2026-16517
Low · 2.9CVSS
2.9
EPSS
0.1%
Published
Jul 21, 2026
CISA due date
—
Cloudanix analysis
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
- Identify an application or script that uses libarchive to create ZIP archives with encryption enabled
- Prepare a file whose size is close to INT64_MAX
- Invoke archive creation with encryption option set
- Trigger archive_write_zip_header to cause the signed overflow
- 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
- CVE-2026-108324 Tanium addressed a denial of service vulnerability in Tanium Client. CWE-190
- CVE-2026-121219 Integer overflow in GPU in Google Chrome prior to 157.0.8103.38 allowed a remote attacker… CWE-190
- CVE-2026-121382 A vulnerability was determined in Netcore NBR100V2 1.3.240614.030928. CWE-190
- CVE-2026-120954 A weakness in the BSON library's handling of a specialized binary vector data type allows… CWE-190
- CVE-2026-63418 Monitoring Plugins is a suite of plugins for monitoring applications. CWE-190
- CVE-2026-121259 A flaw was found in the GStreamer JPEG 2000 decimator in gst-plugins-bad. CWE-190
- CVE-2026-40659 An integer overflow condition in the AMD Compressonator SDK could allow an attacker with… CWE-190
- CVE-2026-100493 An integer overflow in the DDS RGB888 loader of AMD Compressonator SDK could allow an… CWE-190