Zip-rs zip2
zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During Extraction
zip is a zip library for Rust that supports reading and writing simple ZIP files. From 1.3.0 until 9.0.0, ZipArchive::extract in src/read/mod.rs calls Vec::with_capacity for a symbolic link target using the attacker-controlled ZIP64 uncompressed_size before reading entry data. A small archive can request an impossible capacity, causing the infallible allocation path to abort the process before the entry is validated. The failure cannot be contained with catch_unwind or a worker thread, allowing repeated denial of service in archive-processing applications. This issue is fixed in version 9.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.3.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/984
- Patch github.com/zip-rs/zip2/commit/a543a1fc8f3f3eef…
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.