Parser differential in Rust zip library allows file overwrite
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 13 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
The zip crate for Rust is affected from 0 before 9.0.5, including the zip2 package. ZipArchive reads filenames from the central directory while ZipStreamReader extracts using local file header filenames, and the duplicate metadata is not reconciled (CWE-436). An unauthenticated remote attacker can send a crafted archive that passes inspection but makes a streaming extractor write attacker-selected content to a different path, which can overwrite files used by a downstream service.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| zip-rs | zip2 | before 9.0.5 | 9.0.5 | Patch available | CNA |
| — | zip (crates.io) | before 9.0.5 | 9.0.5 | Patch available | GHSA-m665-v7pm-7grj |
- zip2 Vendorzip-rs Affected before 9.0.5 Fixed in 9.0.5 Patch available CNA
- zip (crates.io) Vendor— Affected before 9.0.5 Fixed in 9.0.5 Patch available GHSA-m665-v7pm-7grj
Remediation
Upgrade the zip crate and the zip2 package to version 9.0.5. Red Hat lists no available fix for Ansible Automation Orchestrator 2026, Confidential Compute Attestation, Red Hat Ansible Automation Platform 2 and Red Hat Discovery 2, and no fix planned for OpenShift Lightspeed, as well as other products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
- Fix · CNA zip2 (zip-rs) Fixed in 9.0.5
- Fix · GHSA-m665-v7pm-7grj zip (crates.io) Fixed in 9.0.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Orchestrator 2026 | Affected | No fix yet |
| Confidential Compute Attestation | Affected | No fix yet |
| OpenShift Lightspeed | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Discovery 2 | Affected | No fix yet |
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet |
| Red Hat Enterprise Linux command line assistant | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Trusted Profile Analyzer | Affected | No fix yet |
Not affected: 7 products
- Pen Drive Powered by Red Hat Lightspeed
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform Ansible Core 2
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat Quay 3
Timeline
- 2026-10-26 Threatist record created from CVE-2026-115905
- 2026-10-28 Alias added: GHSA-m665-v7pm-7grj
- 2026-10-28 Fix available: crates.io/[email protected] · GHSA-m665-v7pm-7grj
- 2026-10-28 CVSS score added · GHSA-m665-v7pm-7grj
- 2026-10-28 Weakness changed · GHSA-m665-v7pm-7grj
- 2026-10-28 5 new references · GHSA-m665-v7pm-7grj
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Priority changed: MEDIUM → HIGH
- 2026-11-04 Affected versions changed · Red Hat
- 2026-11-04 CVSS score added · Red Hat
- 2026-11-04 Affected versions changed · Red Hat
- 2026-11-05 Affected versions changed · Red Hat
- 2026-11-05 Affected versions changed · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
- 2026-11-07 Affected versions changed · Red Hat
References
More zip-rs vulnerabilities
- TI-2026-80489 Denial of service in zip crate from attacker-controlled ZIP64 size CVSS 3.1HIGH 7.5
- TI-2025-21198 zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write CVSS 4.0HIGH 7.3
- TI-2026-80488 Authentication bypass in zip Rust crate lets modified AES entries pass CVSS 3.1MEDIUM 6.5
- TI-2026-80491 Excessive allocation in zip Rust crate aborts extraction of symlinks CVSS 3.1HIGH 7.5
- TI-2026-80490 Arbitrary file write outside extraction directory in Rust zip crate CVSS 3.1HIGH 7.4
Sources
- CVE-2026-115905 · CVE Program
- CVE-2026-115905 · NVD
- FIRST EPSS
- GHSA-m665-v7pm-7grj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-115905 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences