CVE-2025-29787
HIGH 7.3CVSS 4.0zip Incorrectly Canonicalizes Paths during Archive Extraction Leading to Arbitrary File Write
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.
- Published
- 17 Mar 2025
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-180CWE-22CWE-61
- Also known as
- GHSA-94vh-gphv-8pm8RUSTSEC-2025-0168
- Sources
- NVDJSONOSV GHSA-94vh-gphv-8pm8JSONOSV RUSTSEC-2025-0168JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.3 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H | |
| OSV | RustSec | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | zip | >= 1.3.0, < 2.3.0 | 2.3.0 |
References
- https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85 · WEB
- https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe · WEB
- https://github.com/zip-rs/zip2/releases/tag/v2.3.0 · WEB
- https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-29787 · ADVISORY
- https://github.com/zip-rs/zip2 · PACKAGE
- https://crates.io/crates/zip · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0168.html · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 17 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Mar 2025)