Vulnerability advisory

CVE-2026-115905

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

Published Updated OSV record ↗

Also known as GHSA-m665-v7pm-7grj

Severity
  • CVSS 4.0CVSS: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 commitsFixed by commit
GIT github.com/zip-rs/zip2 ↗
All commits before 0123ed144cfa7d672dae78b79a034d8900f9aaeb0123ed144cfa7d672dae78b79a034d8900f9aaeb
Not specified8068ab480ccf8daa7411424e365fcdbe6d09443e
Also listed as affected (78)
  • v7.4.0
  • v5.1.1
  • v8.6.0
  • v9.0.4
  • v9.0.3
  • 9.0.2
  • v9.0.1
  • v9.0.0
  • v9.0.0-pre3
  • v9.0.0-pre2
  • v9.0.0-pre1
  • v8.5.1
  • v8.5.0
  • v8.4.0
  • v8.3.1
  • v8.3.0
  • v8.2.0.bak
  • v8.2.0
  • v8.1.0
  • v8.0.0
  • v7.3.0
  • v7.3.0-pre1
  • v7.2.0
  • v7.1.0
  • v7.0.0
  • v6.0.0
  • v5.1.0
  • v5.0.1
  • v5.0.0
  • v4.6.1
  • v4.6.0
  • v4.5.0
  • v4.4.0
  • v4.3.0
  • v4.2.0
  • v4.1.0
  • v4.0.0
  • v3.0.0
  • v2.6.1
  • v2.6.0
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.3
  • v2.2.2
  • v2.2.1
  • v2.2.0
  • v2.1.6
  • v2.1.5
  • v2.1.4
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.0
  • v1.3.1
  • v1.3.0
  • v1.2.3
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.11.0
  • 0.10.3
  • v0.6.4
  • v0.5.12
  • v0.5.11
  • v0.5.9
  • v0.5.8
  • v0.5.7

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

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools