Skip to main content
Vulnerability Database/CVE-2026-111274

CVE-2026-111274: unarr Heap Buffer Overflow Vulnerability

CVE-2026-111274 is a heap-based buffer overflow in unarr library affecting ZIP archive processing. Attackers can exploit this flaw using crafted archives to trigger crashes. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111274 Overview

CVE-2026-111274 is a heap-based out-of-bounds read in the unarr decompression library through version 1.1.1. The flaw resides in zip_parse_extra_fields() within zip/parse-zip.c and stems from an incorrect ZIP64 extra field length check. An attacker who supplies a crafted ZIP archive containing 0xFFFFFFFF sentinel values and a truncated ZIP64 record can force the parser to read past the end of a heap buffer, crashing any application that embeds the library. The weakness is tracked as CWE-125 (Out-of-Bounds Read).

Critical Impact

Processing an attacker-supplied ZIP archive triggers a heap out-of-bounds read, crashing applications that embed unarr and potentially leaking adjacent heap memory contents.

Affected Products

  • unarr library versions through 1.1.1
  • Applications and e-book readers that embed unarr for ZIP extraction
  • Downstream distributions bundling the vulnerable zip/parse-zip.c source

Discovery Timeline

  • 2026-10-15 - CVE-2026-111274 published to the National Vulnerability Database
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111274

Vulnerability Analysis

The unarr library parses the Local File Header and Central Directory of ZIP archives, including the optional ZIP64 extended information extra field. ZIP64 is used when standard 32-bit size or offset fields overflow and must be replaced by 64-bit values. The parser signals this condition by writing the sentinel value 0xFFFFFFFF into the legacy 32-bit fields and expects the real values to follow in the extra field block.

In the vulnerable implementation, zip_parse_extra_fields() enumerates fields in the extra block but does not correctly validate that the remaining extra-field length is large enough to hold every 8-byte ZIP64 value that the sentinel-marked header advertises. When a crafted archive declares multiple 0xFFFFFFFF sentinels but supplies a truncated ZIP64 record, the parser dereferences bytes beyond the allocated heap buffer. This results in an out-of-bounds read of adjacent heap memory and typically a process crash.

Root Cause

The root cause is a missing bounds check between the number of ZIP64 fields implied by sentinel values in the fixed header and the actual length of the ZIP64 extra field data. The parser trusts the attacker-controlled layout rather than verifying that extra_len can accommodate each 8-byte read. The relevant logic can be reviewed in the parse-zip.c source snippet.

Attack Vector

Exploitation requires an attacker to deliver a malicious ZIP file to a user or service that parses it with unarr. User interaction is required to open or process the archive. The impact is limited to availability: the process crashes, and small amounts of heap data may be read into parsing state. See the VulnCheck advisory and the HackMD analysis for a step-by-step walkthrough of the crafted archive layout.

// No verified proof-of-concept code is published. See the referenced
// advisories for a prose description of the malformed ZIP64 record.

Detection Methods for CVE-2026-111274

Indicators of Compromise

  • ZIP archives containing multiple 0xFFFFFFFF sentinel values in Local File Header or Central Directory records paired with an extra-field length that is shorter than the implied ZIP64 payload.
  • Repeated crashes or ASan heap-buffer-overflow READ reports originating from zip_parse_extra_fields in processes that load unarr.

Detection Strategies

  • Scan ingested archives with a ZIP structural validator that cross-checks ZIP64 sentinel usage against actual extra-field length before handing the file to unarr.
  • Build fuzz-tested or AddressSanitizer-instrumented versions of applications embedding unarr and alert on out-of-bounds reads in CI.
  • Monitor crash telemetry and application exception logs for faults inside the unarr ZIP parsing path.

Monitoring Recommendations

  • Centralize application crash reports and correlate repeated faults in archive-handling components with inbound file uploads.
  • Track process-abort events on endpoints that routinely open user-supplied archives, such as document converters and e-book readers.
  • Add detection rules for ZIP files whose Central Directory declares ZIP64 sentinels without a matching ZIP64 end-of-central-directory record.

How to Mitigate CVE-2026-111274

Immediate Actions Required

  • Inventory all applications and services that statically or dynamically link unarr 1.1.1 or earlier.
  • Block or quarantine untrusted ZIP archives at email, upload, and file-share boundaries until patched builds are deployed.
  • Rebuild dependent software against a patched unarr source tree once an upstream fix is published.

Patch Information

At the time of publication, no fixed release of unarr is listed in the advisory. Track the upstream unarr repository for a commit addressing the ZIP64 extra-field length check, and consult the VulnCheck advisory for updates on remediation guidance.

Workarounds

  • Disable ZIP64 extraction paths in applications that do not require archives larger than 4 GB.
  • Pre-validate archives with a hardened parser such as libzip before passing them to unarr.
  • Run archive-processing workloads in a sandbox or isolated process so that a crash does not affect the host application.
bash
# Example: identify binaries linking the vulnerable library on Linux hosts
find / -type f \( -name 'libunarr*' -o -name '*unarr*.so*' \) 2>/dev/null
ldconfig -p | grep -i unarr

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.