CVE-2026-115905
zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE
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.
Fixes and workarounds
Fix
zip (crates.io): OSV reports a fixed version 9.0.5. Check the advisory for supported release branches.
Source: OSV GHSA-m665-v7pm-7grjAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| zip2 zip-rs |
< 9.0.5 (affected) | CNA: GitHub_M |
zipzip
crates.io |
≥ 0; < 9.0.5 (affected, semver); OSV events: introduced 0; fixed 9.0.5Source events (semver)
Other versions: unaffected |
OSV GHSA-m665-v7pm-7grj |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 10.0 critical |
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 | CNA: GitHub_M |
Exploit evidence
- https://github.com/zip-rs/zip2/security/advisories/GHSA-m665-v7pm-7grj
exploit · ADP: CISA-ADP
References
- https://github.com/zip-rs/zip2/security/advisories/GHSA-m665-v7pm-7grjCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/zip-rs/zip2/commit/8068ab480ccf8daa7411424e365fcdbe6d09443eCNA: GitHub_M · x_refsource_MISC
- https://github.com/zip-rs/zip2/releases/tag/v9.0.5CNA: GitHub_M · x_refsource_MISC
- https://github.com/zip-rs/zip2/security/advisories/GHSA-m665-v7pm-7grjADP: CISA-ADP · exploit
- https://github.com/advisories/GHSA-m665-v7pm-7grjOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-m665-v7pm-7grjOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.