Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zip
  4. ›
  5. CVE-2026-115905

CVE-2026-115905: zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE

October 28, 2026

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.


References

  • github.com/advisories/GHSA-m665-v7pm-7grj
  • github.com/zip-rs/zip2/commit/8068ab480ccf8daa7411424e365fcdbe6d09443e
  • github.com/zip-rs/zip2/releases/tag/v9.0.5
  • github.com/zip-rs/zip2/security/advisories/GHSA-m665-v7pm-7grj
  • nvd.nist.gov/vuln/detail/CVE-2026-115905

Code Behaviors & Features

Detect and mitigate CVE-2026-115905 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 9.0.5

Fixed versions

  • 9.0.5

Solution

Upgrade to version 9.0.5 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-436: Interpretation Conflict

Source file

cargo/zip/CVE-2026-115905.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 29 Oct 2026 00:16:20 +0000.