CVE-2026-115905zip-rs zip2
ZIP path mismatch vulnerability in zip2 library
Critical 10.0 No auth needed
Follow: this CVE · zip-rs · zip-rs zip2 We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 4.0
- 10.0
- EPSS
- —
- Auth required
- No
- Published
- Oct 26, 2026
- Updated
- Nov 2, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
The zip2 Rust library treats Central Directory File Header filenames as authoritative while ZipStreamReader extracts using Local File Header filenames without reconciling duplicate metadata. A crafted ZIP archive can appear benign when inspecting the central directory but cause a streaming extractor to write attacker-selected paths and content, potentially overwriting critical files.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 9.0.5
Update the zip dependency to version 9.0.5 or later in your Rust project.
- Apply the vendor's security update for zip2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | zip |
< 9.0.5 |
9.0.5 |
cargo update -p zip --precise 9.0.5 |
| crates.io | zip |
≥ 0.0.0-0 < 9.0.5 |
9.0.5 |
cargo update -p zip --precise 9.0.5 |
Per OSV / GitHub Advisories (GHSA-m665-v7pm-7grj, RUSTSEC-2026-0548). Check the version in your lockfile before upgrading.
Affected products
- zip-rs · zip2
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- goose-1.59.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12541-1 · Nov 13, 2026 Critical
- Security update for gleam · SUSE · openSUSE-SU-2026:22361-1 · Nov 11, 2026 Critical
- openai-codex-0.166.0-2.1 on GA media · SUSE · openSUSE-SU-2026:12488-1 · Nov 8, 2026 Critical
Also: SUSE (+8)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.