Advisory

RUSTSEC-2025-0168

Also known as: CVE-2025-29787, GHSA-94vh-gphv-8pm8

Summary

Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write

Details

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

Severity

Not rated by the source.

Dates

Published
2025-03-16 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

zip

crates.io · All systems

Affected

  • introduced 1.3.0, fixed 2.3.0 (semver)

Fixed versions

2.3.0

Fix

  • Fixed version 2.3.0
    cargo update -p zip --precise 2.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC BY 4.0

This record names its own licence, CC BY 4.0, which differs from the source's (CC0-1.0).

Sources & licences