Zip-rs zip2
zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.1.0, < 9.0.0
Fixed in 9.0.0
Mitigation
Upgrade zip2 to 9.0.0 or later.
References
- Vendor advisory github.com/zip-rs/zip2/security/advisories/GHS…
- Patch github.com/zip-rs/zip2/pull/991
- Patch github.com/zip-rs/zip2/commit/8b4991288b79ad11…
1 more
- Release notes github.com/zip-rs/zip2/releases/tag/v9.0.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.