Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInvoke libarchive ZIP writer locally
-
DeliveryEnable ZIP encryption in write configuration
-
ExploitSupply entry size near INT64_MAX
-
Executionint64_t overflow in archive_write_zip_header
-
PersistUndefined behavior corrupts Zip64 logic or heap
-
ImpactArchive corruption or process crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two simultaneous conditions must hold: (1) ZIP encryption must be explicitly enabled in the libarchive write configuration - this is a non-default, opt-in feature; and (2) the file entry size passed to |
| Impact | The CVSS 3.1 score of 2.9 (Low) with vector AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L accurately reflects the narrow real-world risk. Attack complexity is High because two simultaneous conditions are required: ZIP encryption must be explicitly enabled, and the file entry size must be near INT64_MAX - a value (~9.2 exabytes) that no realistic file system or workload produces. The local attack vector further constrains exploitation to processes that directly invoke libarchive's ZIP writer API. No EPSS score was provided in the available data, but given the extreme trigger conditions, exploitation probability should be expected to be very low. There is no CISA KEV listing and no public proof-of-concept. The CVSS vector reports no integrity impact, though incorrect Zip64 decisions could corrupt archive structure; this is a minor deviation worth noting. Overall this is a low-priority finding despite libarchive's wide deployment: the combination of local-only access, extremely high complexity, and no confidentiality or significant integrity impact makes this a theoretical rather than operationally relevant risk for the vast majority of deployments. Security teams should patch as part of routine maintenance cycles rather than emergency response. |
| Exploit ScenarioDerived | A local user or application invokes libarchive's ZIP writer with ZIP encryption enabled and supplies a crafted archive entry whose declared file size is near INT64_MAX. When |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Signed integer overflow in libarchive's ZIP writer (archive_write_zip_header in archive_write_set_format_zip.c) produces undefined behavior when ZIP encryption is enabled and a file entry size approaches INT64_MAX, causing the encryption overhead addition to wrap the int64_t type. The resulting undefined behavior may cause incorrect Zip64 extension logic - producing malformed archive structure - or, in worst-case scenarios, memory corruption that could affect availability of the consuming process. No public exploit or active exploitation has been identified; the CVSS score of 2.9 and high attack complexity reflect extreme trigger conditions that are practically unreachable in normal deployments.
RemediationAI
No specific patched version number is confirmed in the available data. Monitor the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-16517 and Bugzilla ticket #2505492 at https://bugzilla.redhat.com/show_bug.cgi?id=2505492 for patch availability and exact fix versions; apply the vendor-released update as soon as it is published. As a compensating control where patching is delayed, avoid invoking libarchive's ZIP writer with encryption enabled on file entries whose sizes are provided by untrusted external sources without bounding or validating the size values before passing them to the API. In practice, file sizes near INT64_MAX are physically impossible in most deployments, so the real-world exposure window is minimal; nonetheless, input validation on entry sizes is a sound defensive measure with no meaningful operational trade-off.
Affected ProductsAI
libarchive (ZIP writer component, function archive_write_zip_header in archive_write_set_format_zip.c) is affected. The exact range of vulnerable versions is not specified in the available data; affected versions should be confirmed via the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-16517 and the Red Hat Bugzilla report at https://bugzilla.redhat.com/show_bug.cgi?id=2505492. No CPE strings were provided in the source data, so version ranges must be independently verified from vendor sources. The vulnerability was reported by Red Hat Product Security (secalert@redhat.com), suggesting Red Hat Enterprise Linux and derivative distributions that package libarchive are within scope.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libarchive is a portable C library for reading and writing archive formats including tar, zip, cpio, and others, and is deeply embedded in Linux distributions, macOS, and numerous open-source toolchains. The vulnerable code path is in the ZIP writer module (archive_write_set_format_zip.c), specifically in archive_write_zip_header. CWE-190 (Integer Overflow or Wraparound) is the root cause: the C standard defines signed integer overflow as undefined behavior, so when encryption overhead bytes are added to an int64_t entry size that is already near INT64_MAX (approximately 9.2 × 10^18), the result wraps or produces an indeterminate value. The Zip64 extension in the ZIP specification is required for files exceeding 4 GB; if the size calculation is corrupted, the writer may incorrectly decide whether to emit Zip64 extra fields, producing a structurally invalid archive or corrupting adjacent heap metadata.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Local vector and high complexity from dual prerequisite (encryption + near-INT64_MAX size); I:L added because incorrect Zip64 decisions corrupt archive structural integrity.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
EUVD-2026-47586
GHSA-j8w5-8rj6-wpwf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB