---
id: CVE-2026-115907
title: >-
  zip: legacy Shrink/Reduce/Implode decoder: denial of service from
  attacker-controlled ZIP64 uncompressed size
summary: >-
  zip is a zip library for Rust that supports reading and writing simple ZIP
  files. From 5.1.0 until 9.0.0, applications built with the legacy-zip feature
  can reserve output capacity from an attacker-controlled ZIP64 uncompressed
  size befo…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-400
  - CWE-789
vendor: zip-rs
product: zip2
affected:
  - 'zip2 >= 5.1.0, < 9.0.0'
published: '2026-10-26'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T16:32:15.373Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115907'
references:
  - url: 'https://github.com/zip-rs/zip2/security/advisories/GHSA-9hj8-73fh-9963'
    label: 'https://github.com/zip-rs/zip2/security/advisories/GHSA-9hj8-73fh-9963'
  - url: 'https://github.com/zip-rs/zip2/pull/991'
    label: 'https://github.com/zip-rs/zip2/pull/991'
  - url: >-
      https://github.com/zip-rs/zip2/commit/8b4991288b79ad11cce201c2d785d5baa795bd3e
    label: >-
      https://github.com/zip-rs/zip2/commit/8b4991288b79ad11cce201c2d785d5baa795bd3e
  - url: 'https://github.com/zip-rs/zip2/releases/tag/v9.0.0'
    label: 'https://github.com/zip-rs/zip2/releases/tag/v9.0.0'
tags:
  - cve.org
ingestedAt: '2026-10-26T17:33:33.081Z'
---

## Overview

zip is a zip library for Rust that supports reading and writing simple ZIP files. From 5.1.0 until 9.0.0, applications built with the legacy-zip feature can reserve output capacity from an attacker-controlled ZIP64 uncompressed size before validating the compressed stream. The ShrinkDecoder path in src/legacy/shrink.rs can panic with a capacity overflow during ZipArchive::extract, and the Reduce and Implode decoders contain the same unbounded preallocation pattern. An unhandled panic can terminate an archive-processing service. This issue is fixed in version 9.0.0.

## Affected

- `zip2 >= 5.1.0, < 9.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
