Email me

Rust advisories / zip

Vulnerability HighRUSTSEC-2025-0168 · zip

RUSTSEC-2025-0168: Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write

Short answerA security vulnerability in the zip crate: Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write. GitHub rates it High. Fixed in 2.3.0: update to a fixed version.

Cratezip
TypeVulnerability
Affected versionsFrom 1.3.0 before 2.3.0.
Fixed in2.3.0
SeverityHigh (GitHub rating)
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H
Published2025-03-16
Last changed2026-10-12
Also known asCVE-2025-29787, GHSA-94vh-gphv-8pm8
Affected functionszip::read::ZipArchive::extract, zip::unstable::stream::ZipStreamReader::extract

What to do

  1. See which version you have: cargo tree -i zip (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p zip. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example zip = "2.3.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

In the archive extraction routine of affected versions of the zip crate, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted.

For more details, see the GitHub-hosted security advisory: <https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8>

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 zip

Full security history of zip

Up next

Same cratezip: 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