zip Rust library: crafted ZIP file can crash apps using legacy-zip
A tiny specially crafted ZIP file can make an app built with the Rust zip library crash while extracting it. A crash can stop a file-processing service until it is restarted.
| Severity | HighCVSS 7.5 of 10 |
|---|---|
| Being exploited? | Not knownNo attacks reported so far |
| Fix available? | Yes9.0.0 · since 29 Oct 2026 |
| How sure is this? | Official, 2 sourcesBacked by an official source |
How the attack works simplified
- 1Attacker crafts ZIPTiny file with fake 64-bit size
- 2App receives fileUploaded or read from outside
- 3extract() is calledLegacy Shrink decoder runs
- 4Memory reserve failsCapacity overflow panic before validation
- 5Process terminatesUnhandled panic stops the service
- ResultService crashes, denial of service
What happened
In the zip crate for Rust, the legacy Shrink decoder reserves output memory using an attacker-controlled 64-bit uncompressed size before validating the compressed data, causing a capacity overflow panic. The Reduce and Implode decoders have the same pattern.
Are you affected?
You are affected if your application uses the zip crate from 5.1.0 up to (not including) 9.0.0 with the legacy-zip Cargo feature enabled and calls ZipArchive::extract() on untrusted ZIP files.
| Package / product | Affected versions | Fixed in |
|---|---|---|
| zip · rust | >= 5.1.0, < 9.0.0 | 9.0.0 |
What to do
- Update the zip crate to 9.0.0 or later in Cargo.toml and rebuild.
- If you cannot update yet, remove the legacy-zip feature if you do not need legacy compression methods.
- Run cargo update -p zip and confirm the lockfile shows version 9.0.0 or later.
Timeline
- 26 Oct 2026, 17:17 UTCPublicly disclosed
- 26 Oct 2026, 17:17 UTCReported by NVD · NVD
- 26 Oct 2026, 17:21 UTCPicked up by Zero Radar
- 29 Oct 2026, 16:40 UTCGitHub Advisory reported on it · GitHub Advisory
- 29 Oct 2026, 16:40 UTCFixed version published: zip 9.0.0 · GitHub Advisory
Sources 2 reports, oldest first
Official vendor, government CERT or advisory database
- CVE-2026-115907NVD · 26 Oct 2026, 17:17 UTC
- zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed sizeGitHub Advisory · 29 Oct 2026, 16:40 UTC
Technical details
- ID
- CVE-2026-115907 · GHSA-9hj8-73fh-9963
- CVSS
- 7.5 / 10
- EPSS
- 0.4% chance of exploitation within 30 days
- Disclosed
- 26 Oct 2026, 17:17 UTC
- On Zero Radar
- 26 Oct 2026, 17:21 UTC (5 min after disclosure)
- Last change
- 29 Oct 2026, 16:40 UTC
The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works