Skip to main content

libarchive EUVDEUVD-2026-47586

| CVE-2026-16517 LOW
Integer Overflow or Wraparound (CWE-190)
2026-07-21 secalert@redhat.com GHSA-j8w5-8rj6-wpwf
2.9
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Invoke libarchive ZIP writer locally
  2. Delivery
    Enable ZIP encryption in write configuration
  3. Exploit
    Supply entry size near INT64_MAX
  4. Execution
    int64_t overflow in archive_write_zip_header
  5. Persist
    Undefined behavior corrupts Zip64 logic or heap
  6. Impact
    Archive 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 archive_write_zip_header must be near INT64_MAX (~9.2 × 10^18 bytes). This combination is essentially impossible with real files on real file systems; it could only be triggered by a caller that constructs or relays a maliciously or incorrectly large size value. The attack vector is local (AV:L), meaning the exploiting code must run on the same host as the libarchive process. The CVSS vector reports PR:N, indicating no elevated OS privileges are required beyond the ability to invoke the library. The extreme size prerequisite and the non-default encryption requirement together make opportunistic or automated exploitation implausible.

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 archive_write_zip_header adds the encryption overhead to that size, the int64_t overflows, causing the Zip64 decision logic to misfire or corrupting memory adjacent to the size field. The resulting archive is either structurally invalid or, in a worst-case heap layout, causes the writing process to crash.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 2.9 LOW
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.0 MEDIUM

Local vector and high complexity from dual prerequisite (encryption + near-INT64_MAX size); I:L added because incorrect Zip64 decisions corrupt archive structural integrity.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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

EPSS Score
0.1%
Top 100% exploitable
Prevalence
High
bundled in most Linux distros, macOS, and many open-source toolchains
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy