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


- **Severity:** Critical 10.0 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 26 Oct 2026
- **Updated:** 26 Oct 2026
- **Also known as:** DEBIAN-CVE-2026-115905, GHSA-m665-v7pm-7grj, UBUNTU-CVE-2026-115905

## What is CVE-2026-115905?

CVE-2026-115905 is a critical vulnerability in zip-rs zip2, published on 26 Oct 2026. 

### Official 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.

Weakness: CWE-436 (Interpretation Conflict), CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2026-115905?

2 open source packages ship an affected version, including zip.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `zip` | crates.io | All versions | 9.0.5 |
| `zip` | crates.io | All versions | 9.0.5 |

## How do I fix CVE-2026-115905?

Upgrade zip to 9.0.5 or later.

## Is CVE-2026-115905 being exploited?

There is no known exploitation of CVE-2026-115905 in the wild and no public exploit code.

Public exploit code:

- Detection-only triage scanner for Rust zip cloaking CVE-2026-115905: Cargo version check plus Central vs Local header comparison. No payloads, no extraction. (github_poc): https://github.com/foxcornlab/zip-cloaking-scanner
- Live demo: the same vulnerable Rust zip crate (RUSTSEC-2026-0367 setuid + CVE-2026-115905 zip cloaking) contained by a deny-by-default Cosmonic WebAssembly sandbox. (github_poc): https://github.com/cosmonic-labs/demo-zip-rce-sandbox

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-115905 and fix it if it is affected.

What it is: CVE-2026-115905 is a critical vulnerability in zip-rs zip2, published on 26 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-115905 in the wild and no public exploit code.

Affected packages and fixed versions:
- zip (crates.io): affected all versions; fixed in 9.0.5
- zip (crates.io): affected all versions; fixed in 9.0.5

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-115905/ (Markdown: https://insights.sbomify.com/CVE-2026-115905/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-115905
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-115905
- OSV: https://osv.dev/vulnerability/CVE-2026-115905

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-115905/
Summaries are generated and may contain mistakes; the official description above is the record.
