Live threats

All CVEs / zip-rs

CVE-2026-115905zip-rs zip2

ZIP path mismatch vulnerability in zip2 library

Critical 10.0 No auth needed

Priority
75
CVSS 4.0
10.0
EPSS
—
Auth required
No
Published
Oct 26, 2026
Updated
Nov 2, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-436
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The zip2 Rust library treats Central Directory File Header filenames as authoritative while ZipStreamReader extracts using Local File Header filenames without reconciling duplicate metadata. A crafted ZIP archive can appear benign when inspecting the central directory but cause a streaming extractor to write attacker-selected paths and content, potentially overwriting critical files.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 9.0.5

Update the zip dependency to version 9.0.5 or later in your Rust project.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for zip2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io zip < 9.0.5 9.0.5 cargo update -p zip --precise 9.0.5
crates.io zip ≥ 0.0.0-0 < 9.0.5 9.0.5 cargo update -p zip --precise 9.0.5

Per OSV / GitHub Advisories (GHSA-m665-v7pm-7grj, RUSTSEC-2026-0548). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+8)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.