ADVISORIES

RustSec Advisory Database

RUSTSEC-2025-0168

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>

Affected packages

EcosystemPackageAffected versions
crates.iozip
From 1.3.0 before 2.3.0 (fixed in 2.3.0)

References