CVE-2025-29787
CVE-2025-29787 · zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write
This page contains facts from public vulnerability sources. Check the original advisory before updating.
`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.
CVSS 7.3 · High · EPSS 0.6%
- Published
- Updated
Stack: system
Affected products and versions
zip2
- Versions
- >= 1.3.0, < 2.3.0: Affected
No fix published
rust-zip Ubuntu:20.04:LTS
- Versions
- 0.5.0-1
- 0.5.3-1
- 0.5.3-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:22.04:LTS
- Versions
- 0.5.8-2
- 0.5.13-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:24.04:LTS
- Versions
- 0.6.6-1
- 0.6.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:25.10
- Versions
- 2.5.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:26.10
- Versions
- 5.1.1-3
- 5.1.1+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:26.04:LTS
- Versions
- 2.5.0-1
- 5.1.1-2
- 5.1.1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8
- https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe
- https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85
- https://github.com/zip-rs/zip2/releases/tag/v2.3.0
- https://nvd.nist.gov/vuln/detail/CVE-2025-29787