zip is a zip library for Rust that supports reading and writing simple ZIP files.
CVE-2026-115907
Summary 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. Details When reading a Shrink-compressed entry, ShrinkDecoder::read() buffers the compressed input and reserves output capacity using the entry's declared uncompressed size: rust if !self.streamread { self.streamread = true; let mut compressedbytes = Vec::new(); self.compressedreader.readtoend(&mut compressedbytes)?; self.stream.reserve(self.uncompressedsize as usize); hwunshrink( &compressedbytes, self.uncompressedsize as usize, &mut self.stream, )?; } In version 8.6.0, this is located in [src/legacy/shrink.rs](https://github.com/zip-rs/zip2/blob/771dfc534d2614158af5497ea3dff4d4208d7db1/src/legacy/shrink.rs#L341-L352). The vulnerable legacy codecs are compiled when the legacy-zip Cargo feature is enabled. self.uncompressedsize 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…
Assessment
- CVSS
- 7.5 (v3.1)
- Severity
- High
- EPSS
- 0.0035% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 26 October 2026
- Last updated
- 30 October 2026
- Affected
- rust · zip
- Weakness
- CWE-400, CWE-789
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
At the source
References
- https://github.com/zip-rs/zip2/commit/8b4991288b79ad11cce201c2d785d5baa795bd3e
- https://github.com/zip-rs/zip2/pull/991
- https://github.com/zip-rs/zip2/releases/tag/v9.0.0
- https://github.com/zip-rs/zip2/security/advisories/GHSA-9hj8-73fh-9963
- https://nvd.nist.gov/vuln/detail/CVE-2026-115907
- https://github.com/advisories/GHSA-9hj8-73fh-9963
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-115907