CVE-2025-29787 zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
3 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-zip(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io zip(crates.io) | >= 1.3.0, < 2.3.0 | 2.3.0 | Fixed |
| zip-rs zip2 | = >= 1.3.0, < 2.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io zip(crates.io) | >= 1.3.0, < 2.3.0 | 2.3.0 |
| zip-rs zip2 | = >= 1.3.0, < 2.3.0 | No fix listed |
| ubuntu/rust-zip(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe patch
- https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85
- github.com product
- https://github.com/zip-rs/zip2/releases/tag/v2.3.0
- crates.io product
- rustsec.org vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2025-29787 vendor-advisory