crates.io
CVE-2026-115905
zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE
- Severity
- Critical
- Published
- 28 Oct 2026
- Last changed
- 17 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 9.0.5
- Exploit chance
- 0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-m665-v7pm-7grj, RUSTSEC-2026-0548
- Sources
- OSV.dev and GitHub
Description
A critical architectural parser differential exists in the zip crate (<= 9.0.4) between random-access archive readers (ZipArchive) and streaming readers (ZipStreamReader). ZipArchive considers the Central Directory File Header (CDFH) authoritative and ignores the filename declared in the Local File Header (LFH). In contrast, ZipStreamReader relies exclusively on the Local File Header (LFH) when extracting files to the filesystem.
This discrepancy enables ZIP archives to appear to have different file paths and contents according to which tool is reading them.
In the PKWARE ZIP archive format, every file entry is defined in two distinct locations:
- Local File Header (LFH): Precedes the compressed payload of each file in the body of the archive.
- Central Directory File Header (CDFH): Stored in a contiguous index at the end of the archive.
In zip2:
Affected software
| Software | Affected versions |
|---|---|
zipcrates.io · osv:crates.io:zip |
|
About zip
- Downloads in the last 90 days (crates.io)
- 111,591,536crates.io, 23 Nov 2026
- Total downloads (crates.io)
- 359,656,960crates.io, 23 Nov 2026
Vulnerabilities in zip
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 1
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-115907zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed sizeHigh 7.5 29 Oct 2026
- CVE-2026-115908zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically.High 7.4 29 Oct 2026
- CVE-2026-115906zip: AES Entry HMAC Authentication Bypass on Premature EOFMedium 6.5 29 Oct 2026
- CVE-2026-115909zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During ExtractionHigh 7.5 29 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115905
- GitHub Advisory Database https://github.com/advisories/GHSA-m665-v7pm-7grj