Skip to content
OpenAdvisories
High · 7.3 CVE-2025-29787 EUVD-2025-6526GHSA-94vh-gphv-8pm8RUSTSEC-2025-0168

zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write

Published Mar 17, 2025 · Updated Mar 19, 2025 · Assigned by GitHub_M

Description

`zip` is a zip library for rust which supports reading and writing of simple ZIP files. In the archive extraction routine of affected versions of the `zip` crate starting with version 1.3.0 and prior to version 2.3.0, 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. Users who extract untrusted archive files using the following high-level API method may be affected and critical files on the system may be overwritten with arbitrary file permissions, which can potentially lead to code execution. Version 2.3.0 fixes the issue.

Affected products

VendorProductAffectedFixed
zip-rs zip2 >= 1.3.0, < 2.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-zip No fix yet —
Ubuntu 25.10 rust-zip No fix yet —
Ubuntu 20.04 LTS rust-zip No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling deno 2.5.6-r0 —
Wolfi rolling geckodriver 0.36.0-r1 —
Wolfi rolling nushell +1 0.102.0-r2 —
Wolfi rolling pixi +1 0.43.0-r0 —
Wolfi rolling wasm-pack 0.13.1-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io zip >= 1.3.0, < 2.3.0 2.3.0 GHSA-94vh-gphv-8pm8

References