zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During Extraction
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in zip 9.0.0.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| zip-rs | >=1.3.0 <9.0.0 | ||
| cargo: zip | >=0.0.0-0 <9.0.0, >=1.3.0 <9.0.0 | 9.0.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in zip (Cargo), strongest first
Embed
A live severity badge for an advisory, README or ticket