crates.io
CVE-2026-115907
zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size
- Severity
- High 7.5
- Published
- 29 Oct 2026
- Last changed
- 17 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 9.0.0
- Exploit chance
- 0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-9hj8-73fh-9963, RUSTSEC-2026-0547
- Sources
- OSV.dev and GitHub
Description
A malicious 149-byte ZIP archive can cause a denial of service in applications that enable legacy-zip and use ZipArchive::extract(). An attacker-controlled ZIP64 uncompressed size triggers a capacity overflow panic in the Shrink decoder in optimized builds, potentially terminating the affected process.
When reading a Shrink-compressed entry, ShrinkDecoder::read() buffers the compressed input and reserves output capacity using the entry's declared uncompressed size:
In version 8.6.0, this is located in src/legacy/shrink.rs. The vulnerable legacy codecs are compiled when the legacy-zip Cargo feature is enabled.
self.uncompressed_size is populated from ZIP metadata. For ZIP64 entries, an attacker can set it to a 64-bit value independently of the archive's actual compressed payload size. The PoC declares an uncompressed size of u64::MAX, while supplying only one byte of compressed data.
Affected software
| Software | Affected versions |
|---|---|
zipcrates.io · osv:crates.io:zip |
|
About zip
- Downloads in the last 90 days (crates.io)
- 111,591,536crates.io, 23 Nov 2026
- Total downloads (crates.io)
- 359,656,960crates.io, 23 Nov 2026
Vulnerabilities in zip
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 1
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-115908zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically.High 7.4 29 Oct 2026
- CVE-2026-115906zip: AES Entry HMAC Authentication Bypass on Premature EOFMedium 6.5 29 Oct 2026
- CVE-2026-115909zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During ExtractionHigh 7.5 29 Oct 2026
- CVE-2026-115905zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCECritical 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115907
- GitHub Advisory Database https://github.com/advisories/GHSA-9hj8-73fh-9963