CVE-2026-115905: zip-rs zip2 · Remote code execution
Exploitation: Public exploit · CVSS 10.0 Critical · Unauthenticated · Published 2026-10-26
Description
zip is a zip library for Rust that supports reading and writing simple ZIP files. Through 9.0.4, ZipArchive treats Central Directory File Header filenames as authoritative while ZipStreamReader extracts using Local File Header filenames without reconciling the duplicate metadata in src/read/stream.rs. A crafted archive can therefore appear benign to a component that inspects the central directory but cause a streaming extractor to write a different attacker-selected path and content, potentially overwriting files used by a downstream service. This issue is fixed in version 9.0.5.
Enclave's analysis
The Rust zip crate (zip2) below 9.0.5 reads filenames differently in two places. ZipArchive trusts the central directory. ZipStreamReader extracts using the local headers. A crafted archive can pass a central-directory check, then write a different file when streamed. A PoC is flagged, but there's no KEV listing and EPSS is low. Upgrade to 9.0.5 and review where untrusted archives get streamed.
Fix
Upgrade zip-rs zip (zip2) to 9.0.5. No fixed version is listed for zip2; follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| zip2 | < 9.0.5 | Not listed |
| zip-rs zip (zip2) | < 9.0.5 (through 9.0.4) | 9.0.5 |