Description
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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-400 — CWE-400: Uncontrolled Resource Consumption
- CWE-789 — CWE-789: Memory Allocation with Excessive Size Value
Affected products
| Vendor | Product | Versions |
|---|---|---|
| zip-rs | zip2 | >= 1.3.0, < 9.0.0 [affected] |
References
- https://github.com/zip-rs/zip2/security/advisories/GHSA-q7v9-x93c-xqv3 (x_refsource_CONFIRM)
- https://github.com/zip-rs/zip2/pull/984 (x_refsource_MISC)
- https://github.com/zip-rs/zip2/commit/a543a1fc8f3f3eef36f27bb137230295284cdb98 (x_refsource_MISC)
- https://github.com/zip-rs/zip2/releases/tag/v9.0.0 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 27 Oct 2026 07:01 UTC.