Vulnerability advisory
CVE-2026-115905
zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE
Also known as GHSA-m665-v7pm-7grj
- CVSS 4.0
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
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/zip-rs/zip2 ↗ | |
| All commits before 0123ed144cfa7d672dae78b79a034d8900f9aaeb | 0123ed144cfa7d672dae78b79a034d8900f9aaeb |
| Not specified | 8068ab480ccf8daa7411424e365fcdbe6d09443e |
Also listed as affected (78)
| |
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.
References
- Webgithub.com/zip-rs/zip2/releases/tag/v9.0.5 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115905.json ↗
- Advisorygithub.com/zip-rs/zip2/security/advisories/GHSA-m665-v7pm-7grj ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-115905 ↗
- Fixgithub.com/zip-rs/zip2/commit/8068ab480ccf8daa7411424e365fcdbe6d09443e ↗