VDB
KO

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>

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io / zip
Introduced in: 1.3.0 Fixed in: 2.3.0

Upgrade zip to 2.3.0 or newer (ecosystem crates.io).

References