# CVE-2025-29787: zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2025-03-16T12:00:00.000Z
- Modified: 2026-10-12T18:00:13.042Z
- Also known as: GHSA-94vh-gphv-8pm8, RUSTSEC-2025-0168
- Weaknesses: CWE-22, CWE-61, CWE-180
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- zip-rs zip2: >= 1.3.0, < 2.3.0
- zip (crates.io): from 1.3.0 before 2.3.0

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`
- RustSec Advisory Database: 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`

## References

- <https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8> (web)
- <https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe> (web)
- <https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85> (web)
- <https://github.com/zip-rs/zip2/releases/tag/v2.3.0> (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)

## Sources

- CVE List: [CVE-2025-29787](https://www.cve.org/CVERecord?id=CVE-2025-29787), CVE Terms of Use, modified 2025-03-19
- GitHub Advisory Database: [GHSA-94vh-gphv-8pm8](https://github.com/advisories/GHSA-94vh-gphv-8pm8), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0168](https://rustsec.org/advisories/RUSTSEC-2025-0168.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-29787](https://nvd.nist.gov/vuln/detail/CVE-2025-29787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-29787 · Whole record: https://cve.day/CVE-2025-29787.json · Rebuilt by cve.day 2026-11-25T22:58:55.310Z
