Email me

Rust advisories / unzip

VulnerabilityRUSTSEC-2026-0297 · unzip

RUSTSEC-2026-0297: `unzip`: archive extraction is vulnerable to path traversal (zip-slip)

Short answerA security vulnerability in the unzip crate: `unzip`: archive extraction is vulnerable to path traversal (zip-slip). No severity score was published. No fixed version: replace the crate or remove the affected code path.

Crateunzip
TypeVulnerability (code-execution)
Affected versionsEvery version.
Fixed innone
Severitynot scored
Published2026-09-09
Last changed2026-09-21
Also known asnone
Affected functionsunzip::Unzipper::unzip

What to do

  1. Find who pulls it in: cargo tree -i unzip.
  2. Avoid the affected API (unzip::Unzipper::unzip), or replace the crate.

Details from the advisory

Summary

Unzipper::unzip extracts each archive entry to a path built from the entry's **raw, attacker-controlled name** without any traversal check. A ZIP archive whose entry names contain ../ components (or an absolute path) can therefore cause files to be written **outside** the destination directory chosen by the caller , a "zip-slip" / directory-traversal arbitrary file write (CWE-22 / CWE-23 / CWE-36).

Affected versions

All published versions are affected. unzip has only ever released 0.1.0 (published 2017-12-23) and appears unmaintained, so **no fixed version is available**.

Proof of concept

A malicious archive with a single entry named ../ESCAPED.txt extracted via Unzipper::unzip writes ESCAPED.txt one level above the destination directory.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for unzip

Full security history of unzip

Up next

Same crateunzip: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ