All vulnerabilities

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
Weakness
Improper input validation (CWE-20)CWE-436
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:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
zipcrates.io · osv:crates.io:zip
  • Every version before 9.0.5

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

References